diff options
Diffstat (limited to 'src/mame/drivers/tecmo.cpp')
-rw-r--r-- | src/mame/drivers/tecmo.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/tecmo.cpp b/src/mame/drivers/tecmo.cpp index 9c8029bdc27..ea82c85c471 100644 --- a/src/mame/drivers/tecmo.cpp +++ b/src/mame/drivers/tecmo.cpp @@ -67,23 +67,23 @@ f80b ???? #include "speaker.h" -WRITE8_MEMBER(tecmo_state::bankswitch_w) +void tecmo_state::bankswitch_w(uint8_t data) { m_mainbank->set_entry(data >> 3); } -WRITE8_MEMBER(tecmo_state::adpcm_start_w) +void tecmo_state::adpcm_start_w(uint8_t data) { m_adpcm_pos = data << 8; m_msm->reset_w(0); } -WRITE8_MEMBER(tecmo_state::adpcm_end_w) +void tecmo_state::adpcm_end_w(uint8_t data) { m_adpcm_end = (data + 1) << 8; } -WRITE8_MEMBER(tecmo_state::adpcm_vol_w) +void tecmo_state::adpcm_vol_w(uint8_t data) { m_msm->set_output_gain(ALL_OUTPUTS, (data & 15) / 15.0); } @@ -106,28 +106,28 @@ WRITE_LINE_MEMBER(tecmo_state::adpcm_int) } /* the 8-bit dipswitches are split across addresses */ -READ8_MEMBER(tecmo_state::dswa_l_r) +uint8_t tecmo_state::dswa_l_r() { uint8_t port = ioport("DSWA")->read(); port &= 0x0f; return port; } -READ8_MEMBER(tecmo_state::dswa_h_r) +uint8_t tecmo_state::dswa_h_r() { uint8_t port = ioport("DSWA")->read(); port &= 0xf0; return port>>4; } -READ8_MEMBER(tecmo_state::dswb_l_r) +uint8_t tecmo_state::dswb_l_r() { uint8_t port = ioport("DSWB")->read(); port &= 0x0f; return port; } -READ8_MEMBER(tecmo_state::dswb_h_r) +uint8_t tecmo_state::dswb_h_r() { uint8_t port = ioport("DSWB")->read(); port &= 0xf0; |