bootsect: Move jump to stage2 to second half of bootsector

This commit is contained in:
mintsuki 2020-11-05 01:04:49 +01:00
parent d799658be4
commit d7ec93d01d
2 changed files with 14 additions and 5 deletions

View File

@ -81,12 +81,8 @@ start:
mov ss, ax
and edx, 0xff
push edx
push stage2.size
push (stage2 - decompressor) + 0x70000
call 0x70000
jmp vector
bits 16
@ -102,6 +98,19 @@ times 6 db 0
%include 'disk.inc'
%include 'gdt.inc'
bits 32
vector:
push 0
push edx
push stage2.size
push (stage2 - decompressor) + 0x70000
call 0x70000
bits 16
times 0x1b0-($-$$) db 0
stage2_sector: dd 1

Binary file not shown.