summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/mirax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mirax.cpp')
-rw-r--r--src/mame/drivers/mirax.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mame/drivers/mirax.cpp b/src/mame/drivers/mirax.cpp
index c4b11028968..01ca6221106 100644
--- a/src/mame/drivers/mirax.cpp
+++ b/src/mame/drivers/mirax.cpp
@@ -126,14 +126,14 @@ public:
required_device<palette_device> m_palette;
required_device<generic_latch_8_device> m_soundlatch;
- required_shared_ptr<UINT8> m_videoram;
- required_shared_ptr<UINT8> m_spriteram;
- required_shared_ptr<UINT8> m_colorram;
+ required_shared_ptr<uint8_t> m_videoram;
+ required_shared_ptr<uint8_t> m_spriteram;
+ required_shared_ptr<uint8_t> m_colorram;
- UINT8 m_nAyCtrl;
- UINT8 m_nmi_mask;
- UINT8 m_flipscreen_x;
- UINT8 m_flipscreen_y;
+ uint8_t m_nAyCtrl;
+ uint8_t m_nmi_mask;
+ uint8_t m_flipscreen_x;
+ uint8_t m_flipscreen_y;
DECLARE_WRITE8_MEMBER(audio_w);
DECLARE_WRITE8_MEMBER(nmi_mask_w);
@@ -148,8 +148,8 @@ public:
DECLARE_PALETTE_INIT(mirax);
virtual void machine_start() override;
- UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_tilemap(bitmap_ind16 &bitmap, const rectangle &cliprect, UINT8 draw_flag);
+ uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ void draw_tilemap(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t draw_flag);
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(vblank_irq);
@@ -158,7 +158,7 @@ public:
PALETTE_INIT_MEMBER(mirax_state, mirax)
{
- const UINT8 *color_prom = memregion("proms")->base();
+ const uint8_t *color_prom = memregion("proms")->base();
int i;
for (i = 0;i < palette.entries();i++)
@@ -185,7 +185,7 @@ PALETTE_INIT_MEMBER(mirax_state, mirax)
}
-void mirax_state::draw_tilemap(bitmap_ind16 &bitmap, const rectangle &cliprect, UINT8 draw_flag)
+void mirax_state::draw_tilemap(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t draw_flag)
{
gfx_element *gfx = m_gfxdecode->gfx(0);
int y,x;
@@ -238,7 +238,7 @@ void mirax_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect)
}
}
-UINT32 mirax_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+uint32_t mirax_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
draw_tilemap(bitmap,cliprect,1);
draw_sprites(bitmap,cliprect);
@@ -568,8 +568,8 @@ ROM_END
DRIVER_INIT_MEMBER(mirax_state,mirax)
{
- UINT8 *DATA = memregion("data_code")->base();
- UINT8 *ROM = memregion("maincpu")->base();
+ uint8_t *DATA = memregion("data_code")->base();
+ uint8_t *ROM = memregion("maincpu")->base();
int i;
for(i=0x0000;i<0x4000;i++)