diff options
-rw-r--r-- | src/stage1_functions.asm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stage1_functions.asm b/src/stage1_functions.asm index 30b9294..48d466c 100644 --- a/src/stage1_functions.asm +++ b/src/stage1_functions.asm @@ -107,6 +107,9 @@ current_row: ; IN dl: drive to read from read_from_disk: + mov ax, 0x00 ; reset drive + int 0x13 + mov ah, 0x02 ; read sectors from drive mov al, NOF_LOAD_SECTORS ; read 1 sector @@ -128,6 +131,10 @@ read_from_disk: ret .read_error: + mov ax, 0x00 ; reset drive + int 0x13 + jmp read_from_disk + mov si, DISK_ERROR call print_string mov dh, 0 |