diff options
Diffstat (limited to 'src/mame/drivers/clayshoo.cpp')
-rw-r--r-- | src/mame/drivers/clayshoo.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/clayshoo.cpp b/src/mame/drivers/clayshoo.cpp index 230506cd161..7b8f3124536 100644 --- a/src/mame/drivers/clayshoo.cpp +++ b/src/mame/drivers/clayshoo.cpp @@ -31,21 +31,21 @@ public: m_maincpu(*this, "maincpu") { } /* memory pointers */ - required_shared_ptr<UINT8> m_videoram; + required_shared_ptr<uint8_t> m_videoram; /* misc */ emu_timer *m_analog_timer_1, *m_analog_timer_2; - UINT8 m_input_port_select; - UINT8 m_analog_port_val; + uint8_t m_input_port_select; + uint8_t m_analog_port_val; DECLARE_WRITE8_MEMBER(analog_reset_w); DECLARE_READ8_MEMBER(analog_r); DECLARE_WRITE8_MEMBER(input_port_select_w); DECLARE_READ8_MEMBER(input_port_r); virtual void machine_start() override; virtual void machine_reset() override; - UINT32 screen_update_clayshoo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); + uint32_t screen_update_clayshoo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); TIMER_CALLBACK_MEMBER(reset_analog_bit); - UINT8 difficulty_input_port_r( int bit ); + uint8_t difficulty_input_port_r( int bit ); void create_analog_timers( ); required_device<cpu_device> m_maincpu; }; @@ -63,12 +63,12 @@ WRITE8_MEMBER(clayshoo_state::input_port_select_w) } -UINT8 clayshoo_state::difficulty_input_port_r( int bit ) +uint8_t clayshoo_state::difficulty_input_port_r( int bit ) { - UINT8 ret = 0; + uint8_t ret = 0; /* read fake port and remap the buttons to 2 bits */ - UINT8 raw = ioport("FAKE")->read(); + uint8_t raw = ioport("FAKE")->read(); if (raw & (1 << (bit + 1))) ret = 0x03; /* expert */ @@ -83,7 +83,7 @@ UINT8 clayshoo_state::difficulty_input_port_r( int bit ) READ8_MEMBER(clayshoo_state::input_port_r) { - UINT8 ret = 0; + uint8_t ret = 0; switch (m_input_port_select) { @@ -171,16 +171,16 @@ void clayshoo_state::machine_start() * *************************************/ -UINT32 clayshoo_state::screen_update_clayshoo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) +uint32_t clayshoo_state::screen_update_clayshoo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { offs_t offs; for (offs = 0; offs < m_videoram.bytes(); offs++) { int i; - UINT8 x = offs << 3; - UINT8 y = ~(offs >> 5); - UINT8 data = m_videoram[offs]; + uint8_t x = offs << 3; + uint8_t y = ~(offs >> 5); + uint8_t data = m_videoram[offs]; for (i = 0; i < 8; i++) { |