Unknown bug in boot sector ?
Unknown bug in boot sector ?
..
Last edited by Perica on Sun Dec 03, 2006 9:21 pm, edited 1 time in total.
Re:Unknown bug in boot sector ?
May be this can help you
; code located at 0000:7C00, adjust segment registers
cli
mov ax, 0x07C0
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
sti
; code located at 0000:7C00, adjust segment registers
cli
mov ax, 0x07C0
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
sti
Re:Unknown bug in boot sector ?
..
Last edited by Perica on Sun Dec 03, 2006 9:22 pm, edited 1 time in total.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Unknown bug in boot sector ?
one thing that could help you is adding a checksum at the end of your kernel: edit the last 2 bytes so that the sum of your kernel words is 0. When loading the kernel (or your 2nd stage. that's roughly the same ), check this sum is still 0 before jumping: it should help you telling whether you loaded the whole file correctly or not.