summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/acefruit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/acefruit.cpp')
-rw-r--r--src/mame/drivers/acefruit.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/acefruit.cpp b/src/mame/drivers/acefruit.cpp
index a9b01d35d77..1230e9e4c36 100644
--- a/src/mame/drivers/acefruit.cpp
+++ b/src/mame/drivers/acefruit.cpp
@@ -32,9 +32,9 @@ public:
m_palette(*this, "palette") { }
required_device<cpu_device> m_maincpu;
- required_shared_ptr<UINT8> m_videoram;
- required_shared_ptr<UINT8> m_colorram;
- required_shared_ptr<UINT8> m_spriteram;
+ required_shared_ptr<uint8_t> m_videoram;
+ required_shared_ptr<uint8_t> m_colorram;
+ required_shared_ptr<uint8_t> m_spriteram;
required_device<gfxdecode_device> m_gfxdecode;
required_device<screen_device> m_screen;
required_device<palette_device> m_palette;
@@ -50,7 +50,7 @@ public:
DECLARE_DRIVER_INIT(sidewndr);
virtual void video_start() override;
DECLARE_PALETTE_INIT(acefruit);
- UINT32 screen_update_acefruit(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update_acefruit(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(acefruit_vblank);
void acefruit_update_irq(int vpos);
@@ -116,7 +116,7 @@ INTERRUPT_GEN_MEMBER(acefruit_state::acefruit_vblank)
m_refresh_timer->adjust( attotime::zero );
}
-UINT32 acefruit_state::screen_update_acefruit(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+uint32_t acefruit_state::screen_update_acefruit(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
int startrow = cliprect.min_y / 8;
int endrow = cliprect.max_y / 8;
@@ -150,11 +150,11 @@ UINT32 acefruit_state::screen_update_acefruit(screen_device &screen, bitmap_ind1
for( x = 0; x < 16; x++ )
{
int sprite = ( m_spriteram[ ( spriteindex / 64 ) % 6 ] & 0xf ) ^ 0xf;
- const UINT8 *gfxdata = gfx->get_data(sprite);
+ const uint8_t *gfxdata = gfx->get_data(sprite);
for( y = 0; y < 8; y++ )
{
- UINT16 *dst = &bitmap.pix16(y + ( row * 8 ), x + ( col * 16 ) );
+ uint16_t *dst = &bitmap.pix16(y + ( row * 8 ), x + ( col * 16 ) );
*( dst ) = *( gfxdata + ( ( spriterow + y ) * gfx->rowbytes() ) + ( ( spriteindex % 64 ) >> 1 ) );
}
@@ -170,7 +170,7 @@ UINT32 acefruit_state::screen_update_acefruit(screen_device &screen, bitmap_ind1
{
for( y = 0; y < 8; y++ )
{
- UINT16 *dst = &bitmap.pix16(y + ( row * 8 ), x + ( col * 16 ) );
+ uint16_t *dst = &bitmap.pix16(y + ( row * 8 ), x + ( col * 16 ) );
*( dst ) = 0;
}
}
@@ -635,7 +635,7 @@ MACHINE_CONFIG_END
DRIVER_INIT_MEMBER(acefruit_state,sidewndr)
{
- UINT8 *ROM = memregion( "maincpu" )->base();
+ uint8_t *ROM = memregion( "maincpu" )->base();
/* replace "ret nc" ( 0xd0 ) with "di" */
ROM[ 0 ] = 0xf3;
/* this is either a bad dump or the cpu core should set the carry flag on reset */