diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2020-05-25 20:09:31 +0200 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2020-05-25 20:09:31 +0200 |
commit | 05ff77a36994c0d3a7a8187ff966ab2355b20277 (patch) | |
tree | 72701356c692f61aa315e60fbcd67974d96886ea /src/mame/drivers/atari_s2.cpp | |
parent | dbfff24288ccf868e1901c61b5c079bb9aaeae2b (diff) |
drivers starting with a and b: some macro removal (nw)
Diffstat (limited to 'src/mame/drivers/atari_s2.cpp')
-rw-r--r-- | src/mame/drivers/atari_s2.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/atari_s2.cpp b/src/mame/drivers/atari_s2.cpp index 46db7f2d67c..b7208b9d4b7 100644 --- a/src/mame/drivers/atari_s2.cpp +++ b/src/mame/drivers/atari_s2.cpp @@ -49,13 +49,13 @@ public: void atari_s3(machine_config &config); private: - DECLARE_WRITE8_MEMBER(sound0_w); - DECLARE_WRITE8_MEMBER(sound1_w); - DECLARE_WRITE8_MEMBER(lamp_w) { }; - DECLARE_WRITE8_MEMBER(sol0_w); - DECLARE_WRITE8_MEMBER(sol1_w) { }; - DECLARE_WRITE8_MEMBER(intack_w); - DECLARE_WRITE8_MEMBER(display_w); + void sound0_w(uint8_t data); + void sound1_w(uint8_t data); + void lamp_w(uint8_t data) { }; + void sol0_w(uint8_t data); + void sol1_w(uint8_t data) { }; + void intack_w(uint8_t data); + void display_w(offs_t offset, uint8_t data); TIMER_DEVICE_CALLBACK_MEMBER(irq); TIMER_DEVICE_CALLBACK_MEMBER(timer_s); @@ -340,7 +340,7 @@ INPUT_PORTS_END 14 = total plays counter */ -WRITE8_MEMBER( atari_s2_state::sol0_w ) +void atari_s2_state::sol0_w(uint8_t data) { switch (data) { @@ -360,7 +360,7 @@ WRITE8_MEMBER( atari_s2_state::sol0_w ) } } -WRITE8_MEMBER( atari_s2_state::display_w ) +void atari_s2_state::display_w(offs_t offset, uint8_t data) { static constexpr uint8_t patterns[16] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7c, 0x07, 0x7f, 0x67, 0, 0, 0, 0, 0, 0 }; // 4511 if (offset < 7) @@ -375,7 +375,7 @@ WRITE8_MEMBER( atari_s2_state::display_w ) } } -WRITE8_MEMBER( atari_s2_state::intack_w ) +void atari_s2_state::intack_w(uint8_t data) { m_maincpu->set_input_line(M6800_IRQ_LINE, CLEAR_LINE); } @@ -434,7 +434,7 @@ TIMER_DEVICE_CALLBACK_MEMBER( atari_s2_state::timer_s ) // d4-5 = select initial clock frequency // d6 h = enable wave // d7 h = enable noise -WRITE8_MEMBER( atari_s2_state::sound0_w ) +void atari_s2_state::sound0_w(uint8_t data) { m_sound0 = data; offs_t offs = (m_timer_s[2] & 31) | ((m_sound0 & 15) << 5); @@ -444,7 +444,7 @@ WRITE8_MEMBER( atari_s2_state::sound0_w ) // d0-3 = volume // d4-7 = preset on 74LS161 -WRITE8_MEMBER( atari_s2_state::sound1_w ) +void atari_s2_state::sound1_w(uint8_t data) { m_sound1 = data >> 4; |