IEC routines can now be called with enabled IRQs

This commit is contained in:
FeralChild64 committed 2019-07-17 21:56:42 +02:00
1 parent 152120a3fe
commit 6bf715e610
3 files changed
+14 -9

No files matched your search

+6
View File
@@ -4,6 +4,10 @@
iec_rx_byte:
;; Timing is critical here - execute on disabled IRQs
php
sei
;; First, we wait for the talker to release the CLK line
jsr iec_wait_for_clk_release
@@ -95,6 +99,7 @@ iec_rx_clk_wait2:
;; Timeout
jsr kernalstatus_EOI
pla
plp
sec ; XXX confirm that sec is really a way to report timeout here
rts
*
@@ -112,6 +117,7 @@ iec_rx_clk_wait2:
pla
;; Return no-error
plp
clc
rts