]> wirehaze git hosting - BOS.git/blobdiff - kernel/16bit/init16bit.asm

wirehaze git hosting

fat12 structures, constants and general framework done
[BOS.git] / kernel / 16bit / init16bit.asm
index 652cfb1c92346240df69ad2261f6bb38a7aff9ba..ac3793685eeee292f10e3ba6b5017a4621bc7f9d 100755 (executable)
 ;    save info        ;\r
 ;---------------------;\r
 init16bit:\r
-        call   getmem                                                ; realmode/mem.inc\r
+        call   getmem                                 ; realmode/mem.inc\r
         mov    [ram_amount], eax\r
 \r
         xor    eax, eax                               ; clear mem for IDT and GDT\r
-        mov    edi, 0x6c00                            ; IDT address\r
+        mov    edi, [idtr.address]                    ; IDT address\r
         mov    ecx, (0x800 + 0x800)/4\r
         rep    stosd\r
 \r