X-Git-Url: http://git.dujemihanovic.xyz/posts?a=blobdiff_plain;f=boot%2Fx86%2Fvbr-fat32.s;h=439157f3c4299b6f7bf116f3f519fcbb0d860deb;hb=5138270e466cf2dd21bf0aa6356672fdcc85fee6;hp=7ec3739a8aa80ae7ddd650015a27ae99052c3616;hpb=750b9e3f093f34310a05ffbac7f6b1317ef786e7;p=nameless-os.git diff --git a/boot/x86/vbr-fat32.s b/boot/x86/vbr-fat32.s index 7ec3739..439157f 100644 --- a/boot/x86/vbr-fat32.s +++ b/boot/x86/vbr-fat32.s @@ -2,10 +2,10 @@ ; This is what's going to be on most USB sticks and HDDs, for now bits 16 -org 0x7c00 +org 0xfe00 cpu 686 -STAGE3_ADDRESS equ 0x8000 +STAGE3_ADDRESS equ 0x1800 STAGE3_SEGMENT equ STAGE3_ADDRESS >> 4 STAGE3_OFFSET equ STAGE3_ADDRESS & 0xf @@ -25,7 +25,7 @@ times 0x57 db 0 ; skip past BPB real_start: sti ; no need to set up segments and stack again, because MBR did it for us - mov bp, 0x7c00 + mov bp, 0xfe00 ; we expect the boot drive to be in DL and our partition table entry in DS:SI mov [BOOT_DRIVE], dl