diff options
Diffstat (limited to 'src/devices/bus/x68k/x68k_neptunex.cpp')
-rw-r--r-- | src/devices/bus/x68k/x68k_neptunex.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/devices/bus/x68k/x68k_neptunex.cpp b/src/devices/bus/x68k/x68k_neptunex.cpp index b1fd9d4542f..608acd4587c 100644 --- a/src/devices/bus/x68k/x68k_neptunex.cpp +++ b/src/devices/bus/x68k/x68k_neptunex.cpp @@ -62,17 +62,15 @@ READ16_MEMBER(x68k_neptune_device::x68k_neptune_port_r) return 0xffff; if(offset < 0x100+16) { - m_dp8390->dp8390_cs(CLEAR_LINE); - return (m_dp8390->dp8390_r(offset) << 8)| - m_dp8390->dp8390_r(offset+1); + return (m_dp8390->cs_read(offset) << 8)| + m_dp8390->cs_read(offset+1); } //if(mem_mask == 0x00ff) offset++; switch(offset) { case 0x100+16: - m_dp8390->dp8390_cs(ASSERT_LINE); - data = m_dp8390->dp8390_r(offset); - data = ((data & 0x00ff) << 8) | ((data & 0xff00) >> 8); + data = m_dp8390->remote_read(); + data = swapendian_int16(data); return data; case 0x100+31: m_dp8390->dp8390_reset(CLEAR_LINE); @@ -89,23 +87,20 @@ WRITE16_MEMBER(x68k_neptune_device::x68k_neptune_port_w) return; if(offset < 0x100+16) { - m_dp8390->dp8390_cs(CLEAR_LINE); if(mem_mask == 0x00ff) { data <<= 8; offset++; } - m_dp8390->dp8390_w(offset, data>>8); - if(mem_mask == 0xffff) m_dp8390->dp8390_w(offset+1, data & 0xff); + m_dp8390->cs_write(offset, data>>8); + if(mem_mask == 0xffff) m_dp8390->cs_write(offset+1, data & 0xff); return; } //if(mem_mask == 0x00ff) offset++; switch(offset) { case 0x100+16: - m_dp8390->dp8390_cs(ASSERT_LINE); - data = ((data & 0x00ff) << 8) | ((data & 0xff00) >> 8); - m_dp8390->dp8390_w(offset, data); + m_dp8390->remote_write(swapendian_int16(data)); return; case 0x100+31: m_dp8390->dp8390_reset(ASSERT_LINE); |