diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-09-04 20:17:49 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-09-04 20:17:49 +0200 |
| commit | 487ecc1615ccc0368f1520c1146b2b43cdab6577 (patch) | |
| tree | 07d9e36182251b485e344fbb6e8182e2805a9572 /boot/mbr.asm | |
| parent | 44dcbdf16674bc727503ca748f95eec847755b2f (diff) | |
working on bootloader. we will need stage 2...
Diffstat (limited to 'boot/mbr.asm')
| -rw-r--r-- | boot/mbr.asm | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/boot/mbr.asm b/boot/mbr.asm index 4513100..a854615 100644 --- a/boot/mbr.asm +++ b/boot/mbr.asm @@ -111,14 +111,8 @@ boot_16: ; ; ;remember BOOT_DRIVE (as was set by BIOS) mov [BOOT_DRIVE],dl -; -; ;Load the KERNEL (sectors starting at sector 2) - mov ax,KERNEL_SECTOR - mov es,ax - mov bx,KERNEL_OFFSET - mov dh, 53 ; for lba mode this is hardcoded anyway - mov dl, [BOOT_DRIVE] +; ;Load the IMAGE call disk_load_16 ; @@ -139,7 +133,7 @@ boot_16: ; je a20check ;hang if a20 is disabled! ; ;VESA: also setup vesa stuff before entering 32 bit protected mode - call VesaSetup +; call VesaSetup ; ; ;finally lets enter Protected mode!!! call switch_to_pm @@ -175,7 +169,7 @@ boot_32_pm: ;fill partition table (4x16byte) with zeroes. ;(otherwise my Acer Aspire will not boot) -times 64 db 0x0 +;times 64 db 0x0 ;so we get identified as MBR times 510-($-$$) db 0x0 |
