fix sense of DATA line reading.

This commit is contained in:
Paul Gardner-Stephen committed 2019-05-01 22:11:17 +09:30
1 parent 38b35d05ad
commit 9f0880ed7e
1 file changed
+5 -2
+5 -2
View File
@@ -9,10 +9,12 @@ iec_tx_byte:
;; Did a device respond? (DATA will be pulled if so)
lda $DD00
bmi +
sta $0418
bpl +
;; No devices present, so we can immediately return with device not found
pla
inc $420
jmp kernalerror_DEVICE_NOT_FOUND
*
@@ -71,11 +73,12 @@ iec_tx_byte_l1:
;; try a set number of times
ldx #$ff
* lda $DD00
bmi +
bpl +
dex
bne -
;; Timeout - DEVICE NOT PRESENT
inc $421
jmp kernalerror_DEVICE_NOT_FOUND
*
;; All done.