From 199f632d533af0586c892fa259f0464456afe33e 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 2d49e5e..05bf4b3 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