summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/guab.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/mame/drivers/guab.cpp
parent333bff8de64dfaeb98134000412796b4fdef970b (diff)
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/mame/drivers/guab.cpp')
-rw-r--r--src/mame/drivers/guab.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/guab.cpp b/src/mame/drivers/guab.cpp
index 62a04e77e23..cbe918479e2 100644
--- a/src/mame/drivers/guab.cpp
+++ b/src/mame/drivers/guab.cpp
@@ -56,8 +56,8 @@ enum int_levels
struct ef9369
{
- UINT32 addr;
- UINT16 clut[16]; /* 13-bits - a marking bit and a 444 color */
+ uint32_t addr;
+ uint16_t clut[16]; /* 13-bits - a marking bit and a 444 color */
};
@@ -82,7 +82,7 @@ public:
DECLARE_WRITE16_MEMBER(io_w);
DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
DECLARE_WRITE_LINE_MEMBER(ptm_irq);
- UINT32 screen_update_guab(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update_guab(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
DECLARE_FLOPPY_FORMATS(floppy_formats);
@@ -148,7 +148,7 @@ WRITE16_MEMBER(guab_state::guab_tms34061_w)
READ16_MEMBER(guab_state::guab_tms34061_r)
{
- UINT16 data = 0;
+ uint16_t data = 0;
int func = (offset >> 19) & 3;
int row = (offset >> 7) & 0xff;
int col;
@@ -187,7 +187,7 @@ WRITE16_MEMBER(guab_state::ef9369_w)
/* Data register */
else
{
- UINT32 entry = pal.addr >> 1;
+ uint32_t entry = pal.addr >> 1;
if ((pal.addr & 1) == 0)
{
@@ -196,7 +196,7 @@ WRITE16_MEMBER(guab_state::ef9369_w)
}
else
{
- UINT16 col;
+ uint16_t col;
pal.clut[entry] &= ~0x1f00;
pal.clut[entry] |= (data & 0x1f) << 8;
@@ -219,7 +219,7 @@ READ16_MEMBER(guab_state::ef9369_r)
struct ef9369 &pal = m_pal;
if ((offset & 1) == 0)
{
- UINT16 col = pal.clut[pal.addr >> 1];
+ uint16_t col = pal.clut[pal.addr >> 1];
if ((pal.addr & 1) == 0)
return col & 0xff;
@@ -233,7 +233,7 @@ READ16_MEMBER(guab_state::ef9369_r)
}
}
-UINT32 guab_state::screen_update_guab(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+uint32_t guab_state::screen_update_guab(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
int x, y;
@@ -248,12 +248,12 @@ UINT32 guab_state::screen_update_guab(screen_device &screen, bitmap_ind16 &bitma
for (y = cliprect.min_y; y <= cliprect.max_y; ++y)
{
- UINT8 *src = &m_tms34061->m_display.vram[256 * y];
- UINT16 *dest = &bitmap.pix16(y);
+ uint8_t *src = &m_tms34061->m_display.vram[256 * y];
+ uint16_t *dest = &bitmap.pix16(y);
for (x = cliprect.min_x; x <= cliprect.max_x; x += 2)
{
- UINT8 pen = src[x >> 1];
+ uint8_t pen = src[x >> 1];
/* Draw two 4-bit pixels */
*dest++ = m_palette->pen(pen >> 4);
@@ -300,11 +300,11 @@ INPUT_CHANGED_MEMBER(guab_state::coin_inserted)
{
if (newval == 0)
{
- UINT32 credit;
+ uint32_t credit;
address_space &space = m_maincpu->space(AS_PROGRAM);
/* Get the current credit value and add the new coin value */
- credit = space.read_dword(0x8002c) + (UINT32)(uintptr_t)param;
+ credit = space.read_dword(0x8002c) + (uint32_t)(uintptr_t)param;
space.write_dword(0x8002c, credit);
}
}