From ad6d3ee3717cce0708e3aaf40fe34e54c9c07510 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Wed, 19 Oct 2016 08:47:34 -0600 Subject: [PATCH] Print error number on disk error --- x86_64/bootsector.asm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/x86_64/bootsector.asm b/x86_64/bootsector.asm index 1273e86..806ae49 100644 --- a/x86_64/bootsector.asm +++ b/x86_64/bootsector.asm @@ -160,6 +160,13 @@ load: ret error: + mov bh, 0 + mov bl, ah + call print_num + + mov al, ' ' + call print_char + mov si, errored call print call print_line @@ -183,8 +190,7 @@ DAPACK: .count: dw 0 ; int 13 resets this to # of blocks actually read/written .buf: dw 0 ; memory buffer destination address (0:7c00) .seg: dw 0 ; in memory page zero -.addr: dd 0 ; put the lba to read in this spot - dd 0 ; more storage bytes only for big lba's ( > 4 bytes ) +.addr: dq 0 ; put the lba to read in this spot times 510-($-$$) db 0 db 0x55 -- GitLab