actually try 255 times before giving up when waiting for talker turnaround.

This commit is contained in:
Paul Gardner-Stephen committed 2019-05-04 22:09:19 +09:30
1 parent 84841ab283
commit d0932029bb
1 file changed
+1 -5
+1 -5
View File
@@ -3,9 +3,6 @@
iec_turnaround_to_listen: iec_turnaround_to_listen:
jsr printf
.byte "DOING TURNAROUND",$0d,0
;; Assert data and release clock ;; Assert data and release clock
lda $dd00 lda $dd00
sta $0420 sta $0420
@@ -19,13 +16,12 @@ iec_turnaround_to_listen:
and #$40 and #$40
bne - bne -
;; Wait for clk to be released by the drive to mark ready to talk
ldx #$ff ldx #$ff
* lda $dd00 * lda $dd00
and #$40 and #$40
bne + bne +
dex dex
beq - bne -
jsr printf jsr printf
.byte "TURNAROUND FAILED - FILE NOT FOUND?",$0d,$00 .byte "TURNAROUND FAILED - FILE NOT FOUND?",$0d,$00