boot/fat: Shave off a byte by storing final address on stack
This commit is contained in:
parent
386e91b4c8
commit
909349a4cf
@ -24,6 +24,7 @@ params: times bpb_size db 0
|
|||||||
init: xor ax, ax
|
init: xor ax, ax
|
||||||
mov ss, ax
|
mov ss, ax
|
||||||
mov sp, stack
|
mov sp, stack
|
||||||
|
push sp
|
||||||
|
|
||||||
; save potential partition table entry
|
; save potential partition table entry
|
||||||
push ds
|
push ds
|
||||||
@ -194,7 +195,7 @@ loadclus: lodsw
|
|||||||
.jump: mov dl, [bp+bpb.drivenum]
|
.jump: mov dl, [bp+bpb.drivenum]
|
||||||
pop si
|
pop si
|
||||||
pop ds
|
pop ds
|
||||||
jmp 0x7C00
|
ret
|
||||||
|
|
||||||
err_not_found:
|
err_not_found:
|
||||||
hlt: hlt
|
hlt: hlt
|
||||||
@ -203,4 +204,3 @@ hlt: hlt
|
|||||||
times (0x1F3 - ($-$$)) db 0
|
times (0x1F3 - ($-$$)) db 0
|
||||||
filename: db "KERNEL ", "BS "
|
filename: db "KERNEL ", "BS "
|
||||||
dw 0xAA55
|
dw 0xAA55
|
||||||
buf:
|
|
||||||
|
Loading…
Reference in New Issue
Block a user