Patched to check for real drive data, so we don't spin forever waiting for disk 2.

This commit is contained in:
Martin Haye 2021-02-27 11:14:25 -08:00
parent db1d043744
commit b260002b4d
2 changed files with 19 additions and 0 deletions

View File

@ -1706,6 +1706,25 @@ nodelay
pla
jmp nodisk
+
; Drive is spinning. See if there's real disk data.
ldx #0
ldy #0
-- jsr readnib
- cmp #$D5
beq +
inx
bne --
iny
bne --
pla
pla
jmp nodisk
+ jsr readnib
cmp #$AA
bne -
jsr readnib
cmp #$96
bne -
} ;poll_drive = 1
rts