From 8cc79f95ca3f01810f952d76f39d2ccf7fc519c1 Mon Sep 17 00:00:00 2001 From: Michael Zapf Date: Sat, 4 Dec 2021 14:53:09 +0100 Subject: ti99: Add EOP handling to SCSI card. --- src/devices/bus/ti99/peb/scsicard.cpp | 7 ++++++- src/devices/bus/ti99/peb/scsicard.h | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/devices/bus/ti99/peb/scsicard.cpp b/src/devices/bus/ti99/peb/scsicard.cpp index e84d5911f8e..5f9dfbf19e6 100644 --- a/src/devices/bus/ti99/peb/scsicard.cpp +++ b/src/devices/bus/ti99/peb/scsicard.cpp @@ -362,6 +362,11 @@ WRITE_LINE_MEMBER( whtech_scsi_card_device::irq_w ) operate_ready_line(); } +void whtech_scsi_card_device::signal_scsi_eop(int state) +{ + m_controller->eop_w(state); +} + void whtech_scsi_card_device::device_add_mconfig(machine_config &config) { // RAM circuit @@ -625,8 +630,8 @@ void whtscsi_pld_device::cruwrite(offs_t offset, uint8_t data) m_dma_lock = (data != 0); break; case 3: // SCSI EOP - // signal_scsi_eop(data != 0); LOGMASKED(LOG_CRU, "SCSI EOP %s\n", (data!=0)? "on" : "off"); + m_board->signal_scsi_eop((data != 0)? ASSERT_LINE : CLEAR_LINE); break; case 4: LOGMASKED(LOG_CRU, "Word transfer %s\n", (data!=0)? "on" : "off"); diff --git a/src/devices/bus/ti99/peb/scsicard.h b/src/devices/bus/ti99/peb/scsicard.h index bc4576211d8..a55ad228886 100644 --- a/src/devices/bus/ti99/peb/scsicard.h +++ b/src/devices/bus/ti99/peb/scsicard.h @@ -83,6 +83,9 @@ private: // Determine the state of the READY line void operate_ready_line(); + + // Send the EOP signal to the controller + void signal_scsi_eop(int state); }; class whtscsi_pld_device : public device_t -- cgit v1.2.3