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!!!!
kernel loading
RE:kernel loading
>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
>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
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.
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.