X-Git-Url: http://git.dujemihanovic.xyz/posts?a=blobdiff_plain;f=boot%2Fx86%2Ffat32%2Ffat32.s;h=41d5688a3ae8200333b2e227c60b83fa3f128321;hb=5138270e466cf2dd21bf0aa6356672fdcc85fee6;hp=df5dd89260a3fff08e70e6729ee54f170def9559;hpb=750b9e3f093f34310a05ffbac7f6b1317ef786e7;p=nameless-os.git diff --git a/boot/x86/fat32/fat32.s b/boot/x86/fat32/fat32.s index df5dd89..41d5688 100644 --- a/boot/x86/fat32/fat32.s +++ b/boot/x86/fat32/fat32.s @@ -79,12 +79,12 @@ read_cluster: ; load the FAT sector we're looking for push di push ebx ; offset - push es ; we want to read at 0:1000, not STAGE3_SEGMENT:1000 + push es ; we want to read at 0:800, not STAGE3_SEGMENT:800 push eax ; desired LBA xor ax, ax mov es, ax pop ebx ; pop LBA into EBX - mov di, 0x6000 + mov di, 0x800 mov cx, 1 call read_sectors cmp dl, 0