diff options
Diffstat (limited to 'src/mame/drivers/channelf.cpp')
-rw-r--r-- | src/mame/drivers/channelf.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/channelf.cpp b/src/mame/drivers/channelf.cpp index 361f07323b8..1d11bd349d3 100644 --- a/src/mame/drivers/channelf.cpp +++ b/src/mame/drivers/channelf.cpp @@ -49,12 +49,12 @@ uint8_t channelf_state::port_read_with_latch(uint8_t ext, uint8_t latch_state) return (~ext | latch_state); } -READ8_MEMBER( channelf_state::port_0_r ) +uint8_t channelf_state::port_0_r() { return port_read_with_latch(ioport("PANEL")->read(), m_latch[0]); } -READ8_MEMBER( channelf_state::port_1_r ) +uint8_t channelf_state::port_1_r() { uint8_t ext_value; @@ -66,7 +66,7 @@ READ8_MEMBER( channelf_state::port_1_r ) return port_read_with_latch(ext_value,m_latch[1]); } -READ8_MEMBER( channelf_state::port_4_r ) +uint8_t channelf_state::port_4_r() { uint8_t ext_value; @@ -78,12 +78,12 @@ READ8_MEMBER( channelf_state::port_4_r ) return port_read_with_latch(ext_value,m_latch[2]); } -READ8_MEMBER( channelf_state::port_5_r ) +uint8_t channelf_state::port_5_r() { return port_read_with_latch(0xff, m_latch[3]); } -WRITE8_MEMBER( channelf_state::port_0_w ) +void channelf_state::port_0_w(uint8_t data) { int offs; @@ -96,19 +96,19 @@ WRITE8_MEMBER( channelf_state::port_0_w ) } } -WRITE8_MEMBER( channelf_state::port_1_w ) +void channelf_state::port_1_w(uint8_t data) { m_latch[1] = data; m_val_reg = ((data ^ 0xff) >> 6) & 0x03; } -WRITE8_MEMBER( channelf_state::port_4_w ) +void channelf_state::port_4_w(uint8_t data) { m_latch[2] = data; m_col_reg = (data | 0x80) ^ 0xff; } -WRITE8_MEMBER( channelf_state::port_5_w ) +void channelf_state::port_5_w(uint8_t data) { m_latch[3] = data; m_custom->sound_w((data>>6)&3); |