Page 1 of 1
Unknown bug in boot sector ?
Posted: Fri Oct 17, 2003 6:55 am
by Perica
..
Re:Unknown bug in boot sector ?
Posted: Fri Oct 17, 2003 8:28 am
by gedeon
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
Re:Unknown bug in boot sector ?
Posted: Tue Oct 21, 2003 6:52 am
by Perica
..
Re:Unknown bug in boot sector ?
Posted: Tue Oct 21, 2003 7:47 am
by Pype.Clicker
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.