summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/astrcorp.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/astrcorp.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/astrcorp.cpp')
-rw-r--r--src/mame/drivers/astrcorp.cpp28
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++)