Page 1 of 1

kernel loading

Posted: Fri May 24, 2002 11:00 pm
by keyboard_ninja
I have a problem:
I want to load my kernel from disk into memory.
I have used a number of boot sectors which all
support fat12 and are capable of loading the file
"kernel.bin" into memory, the trouble is, if my
kernel just waits for a key and then reboots, it
works, but anything else, like printing something
to the screen, it just prints out garbage, ascii
characters.
I've used the same kernel on both boot sectors and
get the same result.
Is anyone willing to look at the code and my kernel
to see for themselves ?
It would be a great help.
Thanks
Oh and the boot sectors are by alex friouze and
i think josh macdonald
HELP!!!!

RE:kernel loading

Posted: Sat May 25, 2002 11:00 pm
by J. Weeks
>On 2002-05-25 23:36:20, keyboard_ninja wrote:
>I have a problem:
>I want to load my kernel from disk into memory.
>I have used a number of boot sectors which all
>support fat12 and are capable of loading the file
>"kernel.bin" into memory, the trouble is, if my
>kernel just waits for a key and then reboots, it
>works, but anything else, like printing something
>to the screen, it just prints out garbage, ascii
>characters.
>I've used the same kernel on both boot sectors and
>get the same result.
>Is anyone willing to look at the code and my kernel
>to see for themselves ?
>It would be a great help.
>Thanks
>Oh and the boot sectors are by alex friouze and
>i think josh macdonald
>HELP!!!!

Have you got your code posted on the net somewhere?
If you want, you can send it to me at
[email protected] and I can see what I can do.

No garauntees though, dude... I'm workin' two
jobs right now, and don't have too much free time :)

I'll do my best though!
Jeff

DS

Posted: Wed May 29, 2002 11:00 pm
by Compuboy
  It's OK. I can see the problem. You haven't set your data segment register. The foolproof way to do this is:

push cs
pop ds

  If you really want help with this, please go to the OS dev board at http://www.flashdaddee.com. There are plenty of other people over there who will be willing to help you, including me.

P.S.

Posted: Wed May 29, 2002 11:00 pm
by Compuboy
Sorry about the   tags, I'm so used to using them to indent my paragraphs when I post that I assumed they would work here, as well!