Skip to content
Snippets Groups Projects
Commit ad6d3ee3 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Print error number on disk error

parent 66a17439
No related branches found
No related tags found
No related merge requests found
...@@ -160,6 +160,13 @@ load: ...@@ -160,6 +160,13 @@ load:
ret ret
error: error:
mov bh, 0
mov bl, ah
call print_num
mov al, ' '
call print_char
mov si, errored mov si, errored
call print call print
call print_line call print_line
...@@ -183,8 +190,7 @@ DAPACK: ...@@ -183,8 +190,7 @@ DAPACK:
.count: dw 0 ; int 13 resets this to # of blocks actually read/written .count: dw 0 ; int 13 resets this to # of blocks actually read/written
.buf: dw 0 ; memory buffer destination address (0:7c00) .buf: dw 0 ; memory buffer destination address (0:7c00)
.seg: dw 0 ; in memory page zero .seg: dw 0 ; in memory page zero
.addr: dd 0 ; put the lba to read in this spot .addr: dq 0 ; put the lba to read in this spot
dd 0 ; more storage bytes only for big lba's ( > 4 bytes )
times 510-($-$$) db 0 times 510-($-$$) db 0
db 0x55 db 0x55
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment