more IEC error reporting work

This commit is contained in:
FeralChild64 committed 2019-07-17 16:57:54 +02:00
1 parent ecf1b3aa50
commit 152120a3fe
10 files changed
+252 -100

No files matched your search

+2 -10
View File
@@ -28,7 +28,7 @@ iec_rx_clk_wait1:
;; Timeout - either this is the last byte of stream, or the stream is empty at all.
;; Mark end of stream in IOSTATUS
jsr iec_rx_set_eoi
jsr kernalstatus_EOI
iec_rx_not_empty:
@@ -93,7 +93,7 @@ iec_rx_clk_wait2:
bne iec_rx_clk_wait2 ; 3 cycles if jumped
;; Timeout
jsr iec_rx_set_eoi
jsr kernalstatus_EOI
pla
sec ; XXX confirm that sec is really a way to report timeout here
rts
@@ -115,11 +115,3 @@ iec_rx_clk_wait2:
clc
rts
iec_rx_set_eoi:
;; Store EOI information in IOSTATUS
lda IOSTATUS
ora #$40
sta IOSTATUS
rts