diff options
Diffstat (limited to 'src/devices/bus/coco/coco_t4426.cpp')
-rw-r--r-- | src/devices/bus/coco/coco_t4426.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/devices/bus/coco/coco_t4426.cpp b/src/devices/bus/coco/coco_t4426.cpp index eaa6f651ef2..11c4499990a 100644 --- a/src/devices/bus/coco/coco_t4426.cpp +++ b/src/devices/bus/coco/coco_t4426.cpp @@ -332,16 +332,13 @@ READ8_MEMBER(coco_t4426_device::scs_read) if ((offset >= 0x00) && (offset <= 0x07)) { LOGPIA("- PIA\n"); - result = m_pia->read(space, offset & 3); + result = m_pia->read(offset & 3); LOGPIA("- Offs:%04x Data:%02x\n", offset - 0x04, result); } else if ((offset >= 0x08) && (offset <= 0x0f) && (offset & 2)) { LOGACIA("- ACIA\n"); - if (offset & 1) - result = m_uart->status_r(space, offset & 1); - else - result = m_uart->data_r(space, offset & 1); + result = m_uart->read(offset & 1); LOGACIA("- Offs:%04x Data:%02x\n", offset - 0x04, result); } else @@ -366,15 +363,12 @@ WRITE8_MEMBER(coco_t4426_device::scs_write) if ((offset >= 0x00) && (offset <= 0x07)) { LOG("- PIA\n"); - m_pia->write(space, offset & 3, data); + m_pia->write(offset & 3, data); } else if ((offset >= 0x08) && (offset <= 0x0f) && (offset & 2)) { LOGACIA("- ACIA"); - if (offset & 1) - m_uart->control_w(space, offset & 1, data); - else - m_uart->data_w(space, offset & 1, data); + m_uart->write(offset & 1, data); LOGACIA(" - Offs:%04x Data:%02x\n", offset & 1, data); } else |