summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/calorie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/calorie.cpp')
-rw-r--r--src/mame/drivers/calorie.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/calorie.cpp b/src/mame/drivers/calorie.cpp
index d6c67818c75..46acb198bab 100644
--- a/src/mame/drivers/calorie.cpp
+++ b/src/mame/drivers/calorie.cpp
@@ -100,13 +100,13 @@ public:
m_decrypted_opcodes(*this, "decrypted_opcodes") { }
/* memory pointers */
- required_shared_ptr<UINT8> m_fg_ram;
- required_shared_ptr<UINT8> m_sprites;
+ required_shared_ptr<uint8_t> m_fg_ram;
+ required_shared_ptr<uint8_t> m_sprites;
/* video-related */
tilemap_t *m_bg_tilemap;
tilemap_t *m_fg_tilemap;
- UINT8 m_bg_bank;
+ uint8_t m_bg_bank;
DECLARE_WRITE8_MEMBER(fg_ram_w);
DECLARE_WRITE8_MEMBER(bg_bank_w);
DECLARE_WRITE8_MEMBER(calorie_flipscreen_w);
@@ -118,12 +118,12 @@ public:
virtual void machine_start() override;
virtual void machine_reset() override;
virtual void video_start() override;
- UINT32 screen_update_calorie(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update_calorie(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
required_device<generic_latch_8_device> m_soundlatch;
- optional_shared_ptr<UINT8> m_decrypted_opcodes;
+ optional_shared_ptr<uint8_t> m_decrypted_opcodes;
};
@@ -135,7 +135,7 @@ public:
TILE_GET_INFO_MEMBER(calorie_state::get_bg_tile_info)
{
- UINT8 *src = memregion("user1")->base();
+ uint8_t *src = memregion("user1")->base();
int bg_base = (m_bg_bank & 0x0f) * 0x200;
int code = src[bg_base + tile_index] | (((src[bg_base + tile_index + 0x100]) & 0x10) << 4);
int color = src[bg_base + tile_index + 0x100] & 0x0f;
@@ -161,7 +161,7 @@ void calorie_state::video_start()
m_fg_tilemap->set_transparent_pen(0);
}
-UINT32 calorie_state::screen_update_calorie(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+uint32_t calorie_state::screen_update_calorie(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
int x;
@@ -240,7 +240,7 @@ WRITE8_MEMBER(calorie_state::calorie_flipscreen_w)
READ8_MEMBER(calorie_state::calorie_soundlatch_r)
{
- UINT8 latch = m_soundlatch->read(space, 0);
+ uint8_t latch = m_soundlatch->read(space, 0);
m_soundlatch->clear_w(space, 0, 0);
return latch;
}