summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/nb1414m4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/nb1414m4.cpp')
-rw-r--r--src/mame/machine/nb1414m4.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/mame/machine/nb1414m4.cpp b/src/mame/machine/nb1414m4.cpp
index 5b9b9ea8e36..22f758012ae 100644
--- a/src/mame/machine/nb1414m4.cpp
+++ b/src/mame/machine/nb1414m4.cpp
@@ -32,7 +32,7 @@ Notes:
const device_type NB1414M4 = &device_creator<nb1414m4_device>;
-nb1414m4_device::nb1414m4_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+nb1414m4_device::nb1414m4_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, NB1414M4, "NB1414M4 Mahjong Custom", tag, owner, clock, "nb1414m4", __FILE__),
device_video_interface(mconfig, *this),
m_data(*this, DEVICE_SELF)
@@ -60,7 +60,7 @@ void nb1414m4_device::device_reset()
DEVICE HANDLERS
*****************************************************************************/
-void nb1414m4_device::dma(UINT16 src, UINT16 dst, UINT16 size, UINT8 condition, UINT8 *vram)
+void nb1414m4_device::dma(uint16_t src, uint16_t dst, uint16_t size, uint8_t condition, uint8_t *vram)
{
int i;
@@ -75,7 +75,7 @@ void nb1414m4_device::dma(UINT16 src, UINT16 dst, UINT16 size, UINT8 condition,
}
}
-void nb1414m4_device::fill(UINT16 dst, UINT8 tile, UINT8 pal, UINT8 *vram)
+void nb1414m4_device::fill(uint16_t dst, uint8_t tile, uint8_t pal, uint8_t *vram)
{
int i;
@@ -89,11 +89,11 @@ void nb1414m4_device::fill(UINT16 dst, UINT8 tile, UINT8 pal, UINT8 *vram)
}
}
-void nb1414m4_device::insert_coin_msg(UINT8 *vram)
+void nb1414m4_device::insert_coin_msg(uint8_t *vram)
{
int credit_count = (vram[0xf] & 0xff);
- UINT8 fl_cond = m_screen->frame_number() & 0x10; /* for insert coin "flickering" */
- UINT16 dst;
+ uint8_t fl_cond = m_screen->frame_number() & 0x10; /* for insert coin "flickering" */
+ uint16_t dst;
if(credit_count == 0)
{
@@ -109,11 +109,11 @@ void nb1414m4_device::insert_coin_msg(UINT8 *vram)
}
}
-void nb1414m4_device::credit_msg(UINT8 *vram)
+void nb1414m4_device::credit_msg(uint8_t *vram)
{
int credit_count = (vram[0xf] & 0xff);
- UINT8 fl_cond = m_screen->frame_number() & 0x10; /* for insert coin "flickering" */
- UINT16 dst;
+ uint8_t fl_cond = m_screen->frame_number() & 0x10; /* for insert coin "flickering" */
+ uint16_t dst;
dst = ((m_data[0x023]<<8)|(m_data[0x024]&0xff)) & 0x3fff;
dma(0x0025,dst,0x10,1,vram); /* credit */
@@ -135,11 +135,11 @@ void nb1414m4_device::credit_msg(UINT8 *vram)
}
}
-void nb1414m4_device::kozure_score_msg(UINT16 dst, UINT8 src_base, UINT8 *vram)
+void nb1414m4_device::kozure_score_msg(uint16_t dst, uint8_t src_base, uint8_t *vram)
{
int i;
- UINT8 first_digit;
- UINT8 res;
+ uint8_t first_digit;
+ uint8_t res;
first_digit = 0;
@@ -165,9 +165,9 @@ void nb1414m4_device::kozure_score_msg(UINT16 dst, UINT8 src_base, UINT8 *vram)
}
-void nb1414m4_device::_0200(UINT16 mcu_cmd, UINT8 *vram)
+void nb1414m4_device::_0200(uint16_t mcu_cmd, uint8_t *vram)
{
- UINT16 dst;
+ uint16_t dst;
dst = (m_data[0x330+((mcu_cmd & 0xf)*2)]<<8)|(m_data[0x331+((mcu_cmd & 0xf)*2)]&0xff);
@@ -209,9 +209,9 @@ void nb1414m4_device::_0200(UINT16 mcu_cmd, UINT8 *vram)
[0x10] coinage B
[0x11] sound test num
*/
-void nb1414m4_device::_0600(UINT8 is2p, UINT8 *vram)
+void nb1414m4_device::_0600(uint8_t is2p, uint8_t *vram)
{
- UINT16 dst;
+ uint16_t dst;
int i;
dst = ((m_data[0x1f5]<<8)|(m_data[0x1f6]&0xff)) & 0x3fff;
@@ -264,9 +264,9 @@ void nb1414m4_device::_0600(UINT8 is2p, UINT8 *vram)
dma(0x310 + (((vram[0x06] >> (7-i)) & 1) * 6),dst + (i * 0x20),0x3,1,vram);
}
-void nb1414m4_device::_0e00(UINT16 mcu_cmd, UINT8 *vram)
+void nb1414m4_device::_0e00(uint16_t mcu_cmd, uint8_t *vram)
{
- UINT16 dst;
+ uint16_t dst;
dst = ((m_data[0xdf]<<8)|(m_data[0xe0]&0xff)) & 0x3fff;
dma(0x00e1,dst,8,1,vram); /* hi-score */
@@ -295,7 +295,7 @@ void nb1414m4_device::_0e00(UINT16 mcu_cmd, UINT8 *vram)
}
}
-void nb1414m4_device::exec(UINT16 mcu_cmd, UINT8 *vram, UINT16 &scrollx, UINT16 &scrolly, tilemap_t *tilemap)
+void nb1414m4_device::exec(uint16_t mcu_cmd, uint8_t *vram, uint16_t &scrollx, uint16_t &scrolly, tilemap_t *tilemap)
{
/* latch fg scroll values */
scrollx = (vram[0x0d] & 0xff) | ((vram[0x0e] & 0xff) << 8);