diff options
Diffstat (limited to 'src/devices/cpu/g65816/g65816.cpp')
-rw-r--r-- | src/devices/cpu/g65816/g65816.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/devices/cpu/g65816/g65816.cpp b/src/devices/cpu/g65816/g65816.cpp index f5a4bc4c9ca..1b5ab166ff8 100644 --- a/src/devices/cpu/g65816/g65816.cpp +++ b/src/devices/cpu/g65816/g65816.cpp @@ -1092,29 +1092,29 @@ translation of Breath of Fire 2 to work. More weirdness: we might need to leave 8 CPU cycles for division at first, since using 16 produces bugs (see e.g. Triforce pieces in Zelda 3 intro) */ -WRITE8_MEMBER( _5a22_device::wrmpya_w ) +void _5a22_device::wrmpya_w(uint8_t data) { m_wrmpya = data; } -WRITE8_MEMBER( _5a22_device::wrmpyb_w ) +void _5a22_device::wrmpyb_w(uint8_t data) { m_wrmpyb = data; m_rdmpy = m_wrmpya * m_wrmpyb; /* TODO: m_rddiv == 0? */ } -WRITE8_MEMBER( _5a22_device::wrdivl_w ) +void _5a22_device::wrdivl_w(uint8_t data) { m_wrdiv = (data) | (m_wrdiv & 0xff00); } -WRITE8_MEMBER( _5a22_device::wrdivh_w ) +void _5a22_device::wrdivh_w(uint8_t data) { m_wrdiv = (data << 8) | (m_wrdiv & 0xff); } -WRITE8_MEMBER( _5a22_device::wrdvdd_w ) +void _5a22_device::wrdvdd_w(uint8_t data) { uint16_t quotient, remainder; @@ -1127,27 +1127,27 @@ WRITE8_MEMBER( _5a22_device::wrdvdd_w ) m_rdmpy = remainder; } -WRITE8_MEMBER( _5a22_device::memsel_w ) +void _5a22_device::memsel_w(uint8_t data) { m_fastROM = data & 1; } -READ8_MEMBER( _5a22_device::rddivl_r ) +uint8_t _5a22_device::rddivl_r() { return m_rddiv & 0xff; } -READ8_MEMBER( _5a22_device::rddivh_r ) +uint8_t _5a22_device::rddivh_r() { return m_rddiv >> 8; } -READ8_MEMBER( _5a22_device::rdmpyl_r ) +uint8_t _5a22_device::rdmpyl_r() { return m_rdmpy & 0xff; } -READ8_MEMBER( _5a22_device::rdmpyh_r ) +uint8_t _5a22_device::rdmpyh_r() { return m_rdmpy >> 8; } @@ -1155,16 +1155,16 @@ READ8_MEMBER( _5a22_device::rdmpyh_r ) void _5a22_device::set_5a22_map() { - space(AS_PROGRAM).install_write_handler(0x4202, 0x4202, 0, 0xbf0000, 0, write8_delegate(*this, FUNC(_5a22_device::wrmpya_w))); - space(AS_PROGRAM).install_write_handler(0x4203, 0x4203, 0, 0xbf0000, 0, write8_delegate(*this, FUNC(_5a22_device::wrmpyb_w))); - space(AS_PROGRAM).install_write_handler(0x4204, 0x4204, 0, 0xbf0000, 0, write8_delegate(*this, FUNC(_5a22_device::wrdivl_w))); - space(AS_PROGRAM).install_write_handler(0x4205, 0x4205, 0, 0xbf0000, 0, write8_delegate(*this, FUNC(_5a22_device::wrdivh_w))); - space(AS_PROGRAM).install_write_handler(0x4206, 0x4206, 0, 0xbf0000, 0, write8_delegate(*this, FUNC(_5a22_device::wrdvdd_w))); + space(AS_PROGRAM).install_write_handler(0x4202, 0x4202, 0, 0xbf0000, 0, write8smo_delegate(*this, FUNC(_5a22_device::wrmpya_w))); + space(AS_PROGRAM).install_write_handler(0x4203, 0x4203, 0, 0xbf0000, 0, write8smo_delegate(*this, FUNC(_5a22_device::wrmpyb_w))); + space(AS_PROGRAM).install_write_handler(0x4204, 0x4204, 0, 0xbf0000, 0, write8smo_delegate(*this, FUNC(_5a22_device::wrdivl_w))); + space(AS_PROGRAM).install_write_handler(0x4205, 0x4205, 0, 0xbf0000, 0, write8smo_delegate(*this, FUNC(_5a22_device::wrdivh_w))); + space(AS_PROGRAM).install_write_handler(0x4206, 0x4206, 0, 0xbf0000, 0, write8smo_delegate(*this, FUNC(_5a22_device::wrdvdd_w))); - space(AS_PROGRAM).install_write_handler(0x420d, 0x420d, 0, 0xbf0000, 0, write8_delegate(*this, FUNC(_5a22_device::memsel_w))); + space(AS_PROGRAM).install_write_handler(0x420d, 0x420d, 0, 0xbf0000, 0, write8smo_delegate(*this, FUNC(_5a22_device::memsel_w))); - space(AS_PROGRAM).install_read_handler(0x4214, 0x4214, 0, 0xbf0000, 0, read8_delegate(*this, FUNC(_5a22_device::rddivl_r))); - space(AS_PROGRAM).install_read_handler(0x4215, 0x4215, 0, 0xbf0000, 0, read8_delegate(*this, FUNC(_5a22_device::rddivh_r))); - space(AS_PROGRAM).install_read_handler(0x4216, 0x4216, 0, 0xbf0000, 0, read8_delegate(*this, FUNC(_5a22_device::rdmpyl_r))); - space(AS_PROGRAM).install_read_handler(0x4217, 0x4217, 0, 0xbf0000, 0, read8_delegate(*this, FUNC(_5a22_device::rdmpyh_r))); + space(AS_PROGRAM).install_read_handler(0x4214, 0x4214, 0, 0xbf0000, 0, read8smo_delegate(*this, FUNC(_5a22_device::rddivl_r))); + space(AS_PROGRAM).install_read_handler(0x4215, 0x4215, 0, 0xbf0000, 0, read8smo_delegate(*this, FUNC(_5a22_device::rddivh_r))); + space(AS_PROGRAM).install_read_handler(0x4216, 0x4216, 0, 0xbf0000, 0, read8smo_delegate(*this, FUNC(_5a22_device::rdmpyl_r))); + space(AS_PROGRAM).install_read_handler(0x4217, 0x4217, 0, 0xbf0000, 0, read8smo_delegate(*this, FUNC(_5a22_device::rdmpyh_r))); } |