Reset floppy disks upon read failure
This commit is contained in:
parent
48436ef9bd
commit
e161d14321
1 changed files with 10 additions and 0 deletions
10
io.asm
10
io.asm
|
@ -276,6 +276,16 @@ endif
|
|||
|
||||
dec di
|
||||
jz sector_read_fail
|
||||
|
||||
reset_disk:
|
||||
if debug
|
||||
mov al, '"'
|
||||
mov ah, 0eh
|
||||
int 10h
|
||||
endif
|
||||
xor ax, ax
|
||||
int 13h
|
||||
|
||||
pop cx
|
||||
pop ax
|
||||
jmp try_sector_read
|
||||
|
|
Loading…
Reference in a new issue