summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/coinmstr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/coinmstr.cpp')
-rw-r--r--src/mame/drivers/coinmstr.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mame/drivers/coinmstr.cpp b/src/mame/drivers/coinmstr.cpp
index e699adeb329..cd36a3a26a7 100644
--- a/src/mame/drivers/coinmstr.cpp
+++ b/src/mame/drivers/coinmstr.cpp
@@ -152,12 +152,12 @@ public:
m_gfxdecode(*this, "gfxdecode"),
m_palette(*this, "palette") { }
- required_shared_ptr<UINT8> m_videoram;
- required_shared_ptr<UINT8> m_attr_ram1;
- required_shared_ptr<UINT8> m_attr_ram2;
- required_shared_ptr<UINT8> m_attr_ram3;
+ required_shared_ptr<uint8_t> m_videoram;
+ required_shared_ptr<uint8_t> m_attr_ram1;
+ required_shared_ptr<uint8_t> m_attr_ram2;
+ required_shared_ptr<uint8_t> m_attr_ram3;
tilemap_t *m_bg_tilemap;
- UINT8 m_question_adr[4];
+ uint8_t m_question_adr[4];
DECLARE_WRITE8_MEMBER(quizmstr_bg_w);
DECLARE_WRITE8_MEMBER(quizmstr_attr1_w);
DECLARE_WRITE8_MEMBER(quizmstr_attr2_w);
@@ -168,7 +168,7 @@ public:
DECLARE_DRIVER_INIT(coinmstr);
TILE_GET_INFO_MEMBER(get_bg_tile_info);
virtual void video_start() override;
- UINT32 screen_update_coinmstr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update_coinmstr(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;
@@ -177,7 +177,7 @@ public:
WRITE8_MEMBER(coinmstr_state::quizmstr_bg_w)
{
- UINT8 *videoram = m_videoram;
+ uint8_t *videoram = m_videoram;
videoram[offset] = data;
if(offset >= 0x0240)
@@ -185,7 +185,7 @@ WRITE8_MEMBER(coinmstr_state::quizmstr_bg_w)
}
-static void coinmstr_set_pal(palette_device &palette, UINT32 paldat, int col)
+static void coinmstr_set_pal(palette_device &palette, uint32_t paldat, int col)
{
col = col *4;
@@ -225,7 +225,7 @@ WRITE8_MEMBER(coinmstr_state::quizmstr_attr1_w)
if(offset >= 0x0240)
{
// the later games also use attr3 for something..
- UINT32 paldata = (m_attr_ram1[offset] & 0x7f) | ((m_attr_ram2[offset] & 0x7f) << 7);
+ uint32_t paldata = (m_attr_ram1[offset] & 0x7f) | ((m_attr_ram2[offset] & 0x7f) << 7);
m_bg_tilemap->mark_tile_dirty(offset - 0x0240);
coinmstr_set_pal(*m_palette, paldata, offset - 0x240);
@@ -240,7 +240,7 @@ WRITE8_MEMBER(coinmstr_state::quizmstr_attr2_w)
if(offset >= 0x0240)
{
// the later games also use attr3 for something..
- UINT32 paldata = (m_attr_ram1[offset] & 0x7f) | ((m_attr_ram2[offset] & 0x7f) << 7);
+ uint32_t paldata = (m_attr_ram1[offset] & 0x7f) | ((m_attr_ram2[offset] & 0x7f) << 7);
m_bg_tilemap->mark_tile_dirty(offset - 0x0240);
coinmstr_set_pal(*m_palette, paldata, offset - 0x240);
@@ -261,7 +261,7 @@ WRITE8_MEMBER(coinmstr_state::quizmstr_attr3_w)
READ8_MEMBER(coinmstr_state::question_r)
{
int address;
- UINT8 *questions = memregion("user1")->base();
+ uint8_t *questions = memregion("user1")->base();
switch(m_question_adr[2])
{
@@ -1207,7 +1207,7 @@ GFXDECODE_END
TILE_GET_INFO_MEMBER(coinmstr_state::get_bg_tile_info)
{
- UINT8 *videoram = m_videoram;
+ uint8_t *videoram = m_videoram;
int tile = videoram[tile_index + 0x0240];
int color = tile_index;
@@ -1224,7 +1224,7 @@ void coinmstr_state::video_start()
m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(coinmstr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 46, 32);
}
-UINT32 coinmstr_state::screen_update_coinmstr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+uint32_t coinmstr_state::screen_update_coinmstr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
return 0;
@@ -1528,9 +1528,9 @@ ROM_END
DRIVER_INIT_MEMBER(coinmstr_state,coinmstr)
{
- UINT8 *rom = memregion("user1")->base();
+ uint8_t *rom = memregion("user1")->base();
int length = memregion("user1")->bytes();
- std::vector<UINT8> buf(length);
+ std::vector<uint8_t> buf(length);
int i;
memcpy(&buf[0],rom,length);