IEC/IRQ related cleanups

This commit is contained in:
FeralChild64 committed 2019-07-16 17:09:22 +02:00
1 parent 51dc3fabf4
commit f4cb2a39b3
7 files changed
+11 -27

No files matched your search

+2 -7
View File
@@ -3,6 +3,7 @@
iec_tx_command:
;; Store command to send on the stack
pha
;; Notify all devices that we are going to send a byte
@@ -20,9 +21,6 @@ iec_tx_command:
;; No devices present on the bus, so we can immediately return with device not found
pla
jsr printf
.byte "DBG: NO DEVICES AT ALL", $0D, 0
jsr iec_set_idle
jmp kernalerror_DEVICE_NOT_FOUND
*
@@ -47,14 +45,11 @@ iec_tx_command:
lda CI2PRA
and #BIT_CI2PRA_DAT_IN ; XXX try to optimize this, move to separate routine
beq +
;; XXX possible optimization of the flow above: for many commands it is enough
;; to wait for the DATA being pulled, as confirmation is expected from
;; a single device only - but not sure if it's worth the trouble
jsr printf
.byte "DBG: NO CONFIRMATION FROM DEVICE", $0D, 0
jsr iec_set_idle
jmp kernalerror_DEVICE_NOT_FOUND
*