diff options
Diffstat (limited to 'src/mame/drivers/astrcorp.cpp')
-rw-r--r-- | src/mame/drivers/astrcorp.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mame/drivers/astrcorp.cpp b/src/mame/drivers/astrcorp.cpp index a630472f739..3f59c92a7cc 100644 --- a/src/mame/drivers/astrcorp.cpp +++ b/src/mame/drivers/astrcorp.cpp @@ -64,12 +64,12 @@ public: required_device<palette_device> m_palette; // memory pointers - required_shared_ptr<UINT16> m_spriteram; + required_shared_ptr<uint16_t> m_spriteram; // video-related bitmap_ind16 m_bitmap; - UINT16 m_screen_enable; - UINT16 m_draw_sprites; + uint16_t m_screen_enable; + uint16_t m_draw_sprites; DECLARE_WRITE16_MEMBER(astrocorp_draw_sprites_w); DECLARE_WRITE16_MEMBER(astrocorp_eeprom_w); DECLARE_WRITE16_MEMBER(showhand_outputs_w); @@ -82,7 +82,7 @@ public: DECLARE_DRIVER_INIT(showhanc); DECLARE_DRIVER_INIT(showhand); DECLARE_VIDEO_START(astrocorp); - UINT32 screen_update_astrocorp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + uint32_t screen_update_astrocorp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(skilldrp_scanline); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); }; @@ -124,8 +124,8 @@ VIDEO_START_MEMBER(astrocorp_state,astrocorp) void astrocorp_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect) { - UINT16 *source = m_spriteram; - UINT16 *finish = m_spriteram + m_spriteram.bytes() / 2; + uint16_t *source = m_spriteram; + uint16_t *finish = m_spriteram + m_spriteram.bytes() / 2; for ( ; source < finish; source += 8 / 2 ) { @@ -169,7 +169,7 @@ void astrocorp_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &clipre } } -UINT32 astrocorp_state::screen_update_astrocorp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) +uint32_t astrocorp_state::screen_update_astrocorp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { if (m_screen_enable & 1) copybitmap(bitmap, m_bitmap, 0,0,0,0, cliprect); @@ -186,8 +186,8 @@ UINT32 astrocorp_state::screen_update_astrocorp(screen_device &screen, bitmap_in WRITE16_MEMBER(astrocorp_state::astrocorp_draw_sprites_w) { - UINT16 old = m_draw_sprites; - UINT16 now = COMBINE_DATA(&m_draw_sprites); + uint16_t old = m_draw_sprites; + uint16_t now = COMBINE_DATA(&m_draw_sprites); if (!old && now) draw_sprites(m_bitmap, m_screen->visible_area()); @@ -470,7 +470,7 @@ GFXDECODE_END Machine Drivers ***************************************************************************/ -static const UINT16 showhand_default_eeprom[15] = {0x0001,0x0007,0x000a,0x0003,0x0000,0x0009,0x0003,0x0000,0x0002,0x0001,0x0000,0x0000,0x0000,0x0000,0x0000}; +static const uint16_t showhand_default_eeprom[15] = {0x0001,0x0007,0x000a,0x0003,0x0000,0x0009,0x0003,0x0000,0x0002,0x0001,0x0000,0x0000,0x0000,0x0000,0x0000}; /* @@ -1176,7 +1176,7 @@ ROM_END DRIVER_INIT_MEMBER(astrocorp_state,showhand) { #if 0 - UINT16 *rom = (UINT16*)memregion("maincpu")->base(); + uint16_t *rom = (uint16_t*)memregion("maincpu")->base(); rom[0x0a1a/2] = 0x6000; // hopper jam @@ -1192,7 +1192,7 @@ DRIVER_INIT_MEMBER(astrocorp_state,showhand) DRIVER_INIT_MEMBER(astrocorp_state,showhanc) { #if 0 - UINT16 *rom = (UINT16*)memregion("maincpu")->base(); + uint16_t *rom = (uint16_t*)memregion("maincpu")->base(); rom[0x14d4/2] = 0x4e71; // enable full test mode rom[0x14d6/2] = 0x4e71; // "" @@ -1205,8 +1205,8 @@ DRIVER_INIT_MEMBER(astrocorp_state,showhanc) DRIVER_INIT_MEMBER(astrocorp_state,astoneag) { #if 0 - UINT16 *rom = (UINT16*)memregion("maincpu")->base(); - UINT16 x; + uint16_t *rom = (uint16_t*)memregion("maincpu")->base(); + uint16_t x; int i; for (i = 0x25100/2; i < 0x25200/2; i++) |