From e161d14321f61f8a5553bc3516af3fb6471507cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Tue, 29 Mar 2022 04:41:45 +0300 Subject: [PATCH] Reset floppy disks upon read failure --- io.asm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/io.asm b/io.asm index 8155a04..49f07f8 100644 --- a/io.asm +++ b/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