Reset floppy disks upon read failure

This commit is contained in:
Juhani Krekelä 2022-03-29 04:41:45 +03:00
parent 48436ef9bd
commit e161d14321
1 changed files with 10 additions and 0 deletions

10
io.asm
View File

@ -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