Page 1 of 1

Kernel Loading

Posted: Mon Jan 14, 2002 12:00 am
by Dude
Can someone post example of a boot-sector loading something from sector 2 ?
I'm having trouble doing it.
My machine either does nothing or prints strange characters across the screen
I found that "Daniels boot sector tutorial" did workk.
I got an error "error writing to offset 2c" or similar to that
Any suggestions ?

RE:KernelĀ Loading

Posted: Mon Jan 14, 2002 12:00 am
by Guest
>On 2002-01-14 18:23:32, Dude wrote:
>Can someone post example of a boot-sector loading something from sector 2 ?
>I'm having trouble doing it.
>My machine either does nothing or prints strange characters across the screen
>I found that "Daniels boot sector tutorial" did workk.
>I got an error "error writing to offset 2c" or similar to that
>Any suggestions ?

Are you using int 0x13 to load sectors? It requires
you to pass the segment:offset of the memory
location that you want the sector to be loaded.
Have you reserved the space within your code...
This is unlikely because your boot code has to fit
in 512bytes...so I assume that you are passing an
arbitrary address!....try different memory locations!