diff options
author | 2013-06-08 15:42:11 +0000 | |
---|---|---|
committer | 2013-06-08 15:42:11 +0000 | |
commit | 9eafc98ed9992e5d2067b2cbfaa53dae582976c8 (patch) | |
tree | aa7f701d25232324d1733425738e15be527a3f5b /src/mess/machine/a2zipdrive.c | |
parent | bac361dd3df9e5744268f3cf91b16855e349697b (diff) |
First pass at tidying up ide interface. It no longer tries to force everything to act as a PC. A copy of the VIA VT83C461 datasheet would be useful to remove some of the hacks added to make the games using it work again. [smf]
Diffstat (limited to 'src/mess/machine/a2zipdrive.c')
-rw-r--r-- | src/mess/machine/a2zipdrive.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mess/machine/a2zipdrive.c b/src/mess/machine/a2zipdrive.c index d68cfb8369b..171dfa710fa 100644 --- a/src/mess/machine/a2zipdrive.c +++ b/src/mess/machine/a2zipdrive.c @@ -116,10 +116,10 @@ UINT8 a2bus_zipdrivebase_device::read_c0nx(address_space &space, UINT8 offset) case 5: case 6: case 7: - return m_ide->ide_controller_r(0x1f0+offset, 1); + return m_ide->read_cs0(space, offset, 0xff); case 8: // data port - m_lastdata = m_ide->ide_controller_r(0x1f0, 2); + m_lastdata = m_ide->read_cs0(space, offset, 0xffff); // printf("%04x @ IDE data\n", m_lastdata); return m_lastdata&0xff; @@ -152,7 +152,7 @@ void a2bus_zipdrivebase_device::write_c0nx(address_space &space, UINT8 offset, U case 6: case 7: // printf("%02x to IDE controller @ %x\n", data, offset); - m_ide->ide_controller_w(0x1f0+offset, 1, data); + m_ide->write_cs0(space, offset, data, 0xff); break; case 8: @@ -164,7 +164,7 @@ void a2bus_zipdrivebase_device::write_c0nx(address_space &space, UINT8 offset, U // printf("%02x to IDE data hi\n", data); m_lastdata &= 0x00ff; m_lastdata |= (data << 8); - m_ide->ide_controller_w(0x1f0, 2, m_lastdata); + m_ide->write_cs0(space, offset, m_lastdata, 0xffff); break; default: |