Kernel Print problems
Re:Kernel Print problems
It restarts me when writes "a" and "b". I think it still doesn't work. :'(
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Kernel Print problems
Code: Select all
xor bx, bx
mov es, bx
mov bx, 60000
However, i doubt you wanted to place your kernel at that place .
Code: Select all
.text 0x100000
Re:Kernel Print problems
Sorry, i forgot to upload new source to the internet.
http://avnet.sytes.net/~vladas/kernel.txt
I updated the link.ld and video.c files like Neo told me.
http://avnet.sytes.net/~vladas/kernel.txt
I updated the link.ld and video.c files like Neo told me.
Re:Kernel Print problems
Try the attached one out, you will see that the line gets printed.
The compile.bat file instead of writing to a floppy just generates a image file called 'test.img' give this to bochs and see the output. Let me know what you get.
The compile.bat file instead of writing to a floppy just generates a image file called 'test.img' give this to bochs and see the output. Let me know what you get.
Only Human
Re:Kernel Print problems
yeah it works with a few calls to the print function only. i just realised what was 'wrong'.Vladaz wrote: Yeeee! ;D Now it works. Thank you! ;D
The 'error' was that I was using partcopy with the wrong file size. I mean i was testing your code out with a single print statement in kernel_main() and was using the size that was generated by that file. Afterward when i used your code with the other print statements the thing crashed because the whole file was not read in. (I had to run this through BOCHS debugger single-stepping to realize that pure nothing was being executed after a point).
Change the relevant line in the compile.bat file to this
Code: Select all
patcopy kernel.bin 0 200 test.img 200
Only Human