summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/flyball.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/flyball.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/flyball.cpp')
-rw-r--r--src/mame/drivers/flyball.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/flyball.cpp b/src/mame/drivers/flyball.cpp
index c1bab2d6190..e10e0bc38a4 100644
--- a/src/mame/drivers/flyball.cpp
+++ b/src/mame/drivers/flyball.cpp
@@ -50,19 +50,19 @@ public:
required_device<palette_device> m_palette;
/* memory pointers */
- required_shared_ptr<UINT8> m_playfield_ram;
+ required_shared_ptr<uint8_t> m_playfield_ram;
/* video-related */
tilemap_t *m_tmap;
- UINT8 m_pitcher_vert;
- UINT8 m_pitcher_horz;
- UINT8 m_pitcher_pic;
- UINT8 m_ball_vert;
- UINT8 m_ball_horz;
+ uint8_t m_pitcher_vert;
+ uint8_t m_pitcher_horz;
+ uint8_t m_pitcher_pic;
+ uint8_t m_ball_vert;
+ uint8_t m_ball_horz;
/* misc */
- UINT8 m_potmask;
- UINT8 m_potsense;
+ uint8_t m_potmask;
+ uint8_t m_potsense;
emu_timer *m_pot_clear_timer;
emu_timer *m_quarter_timer;
@@ -86,7 +86,7 @@ public:
virtual void video_start() override;
DECLARE_PALETTE_INIT(flyball);
- UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
TIMER_CALLBACK_MEMBER(joystick_callback);
TIMER_CALLBACK_MEMBER(quarter_callback);
@@ -113,7 +113,7 @@ TILEMAP_MAPPER_MEMBER(flyball_state::get_memory_offset)
TILE_GET_INFO_MEMBER(flyball_state::get_tile_info)
{
- UINT8 data = m_playfield_ram[tile_index];
+ uint8_t data = m_playfield_ram[tile_index];
int flags = ((data & 0x40) ? TILE_FLIPX : 0) | ((data & 0x80) ? TILE_FLIPY : 0);
int code = data & 63;
@@ -130,7 +130,7 @@ void flyball_state::video_start()
}
-UINT32 flyball_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+uint32_t flyball_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
int pitcherx = m_pitcher_horz;
int pitchery = m_pitcher_vert - 31;
@@ -424,9 +424,9 @@ PALETTE_INIT_MEMBER(flyball_state, flyball)
void flyball_state::machine_start()
{
/* address bits 0 through 8 are inverted */
- UINT8 *ROM = memregion("maincpu")->base();
+ uint8_t *ROM = memregion("maincpu")->base();
int len = memregion("maincpu")->bytes();
- std::vector<UINT8> buf(len);
+ std::vector<uint8_t> buf(len);
for (int i = 0; i < len; i++)
buf[i ^ 0x1ff] = ROM[i];
memcpy(ROM, &buf[0], len);