projects
/
ld45_start_nothing
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed the 32bit version
[ld45_start_nothing]
/
src
/
boot
/
boot.asm
diff --git
a/src/boot/boot.asm
b/src/boot/boot.asm
index
693bba3
..
0b6fb04
100644
(file)
--- a/
src/boot/boot.asm
+++ b/
src/boot/boot.asm
@@
-87,6
+87,7
@@
get_drive_chs:
; read_sector expects a linear sector number in cx, converts it to CHS
; and loads the sector at es:bx
read_sector:
; read_sector expects a linear sector number in cx, converts it to CHS
; and loads the sector at es:bx
read_sector:
+ push bx ; save dest offset
mov byte [read_retries], 3
.read_try:
push cx ; save linear sector number
mov byte [read_retries], 3
.read_try:
push cx ; save linear sector number
@@
-138,6
+139,7
@@
read_sector:
call putchar
pop cx
call putchar
pop cx
+ pop bx
ret
abort_read:
ret
abort_read: