diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2020-05-18 16:42:55 +0200 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2020-05-18 16:42:55 +0200 |
commit | 4cde7dd08217aee98061f28a1ab263b3d4971418 (patch) | |
tree | 449d5556625a0242bca38326e2e90174e1d8bb09 /src/mame/drivers/gp_2.cpp | |
parent | 524846ad9dd92dd31b3c1175746d9ae53c7cd1da (diff) |
further macro removal work (nw)
Diffstat (limited to 'src/mame/drivers/gp_2.cpp')
-rw-r--r-- | src/mame/drivers/gp_2.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/gp_2.cpp b/src/mame/drivers/gp_2.cpp index 8e7655e43e0..a5d2bbf4c91 100644 --- a/src/mame/drivers/gp_2.cpp +++ b/src/mame/drivers/gp_2.cpp @@ -66,9 +66,9 @@ public: void init_gp_2(); private: - DECLARE_WRITE8_MEMBER(porta_w); - DECLARE_WRITE8_MEMBER(portc_w); - DECLARE_READ8_MEMBER(portb_r); + void porta_w(uint8_t data); + void portc_w(uint8_t data); + uint8_t portb_r(); TIMER_DEVICE_CALLBACK_MEMBER(zero_timer); void gp_2_io(address_map &map); void gp_2_map(address_map &map); @@ -467,7 +467,7 @@ static INPUT_PORTS_START( gp_2 ) PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) INPUT_PORTS_END -READ8_MEMBER( gp_2_state::portb_r ) +uint8_t gp_2_state::portb_r() { switch (m_u14) { @@ -493,7 +493,7 @@ READ8_MEMBER( gp_2_state::portb_r ) return 0; } -WRITE8_MEMBER( gp_2_state::porta_w ) +void gp_2_state::porta_w(uint8_t data) { m_u14 = data >> 4; if ((data > 0x0f) && (data < 0x30)) @@ -557,7 +557,7 @@ WRITE8_MEMBER( gp_2_state::porta_w ) } } -WRITE8_MEMBER( gp_2_state::portc_w ) +void gp_2_state::portc_w(uint8_t data) { output().set_value("led0", !BIT(data, 3)); m_digit = data & 7; |