]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - boot/x86/fat32/fat32.s
Rehaul the memory map
[nameless-os.git] / boot / x86 / fat32 / fat32.s
index df5dd89260a3fff08e70e6729ee54f170def9559..41d5688a3ae8200333b2e227c60b83fa3f128321 100644 (file)
@@ -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