Weird string outputting problem
Posted: Tue Aug 18, 2009 3:50 pm
I have tried to create a barebones kernel with basic screen printing functionality , following these tutorials:
http://jamesmolloy.co.uk/tutorial_html/ ... creen.html
http://wiki.osdev.org/Bare_bones
The only problem is, i have 2 functions which seem do behave extremely odd when put together.
one is "writech(char c)" and the other "write(char *c)"
when i use write("blablabla") i get the scenario in the first picture.
when i use writech('X') i get the scenario in the second picture. this works as it should.
and when i use multiple writech('X') one after another, i get the scenario in the third picture.
Screen 1:
Screen 2:
Screen 3:
and i have no idea how to fix this or why it is doing this. been trying for 3 hours now
can anyone help with a hint at least, or a link to where i can find a good print function example?
(i have attached the source code in the post)
thanks
http://jamesmolloy.co.uk/tutorial_html/ ... creen.html
http://wiki.osdev.org/Bare_bones
The only problem is, i have 2 functions which seem do behave extremely odd when put together.
one is "writech(char c)" and the other "write(char *c)"
when i use write("blablabla") i get the scenario in the first picture.
when i use writech('X') i get the scenario in the second picture. this works as it should.
and when i use multiple writech('X') one after another, i get the scenario in the third picture.
Screen 1:
Screen 2:
Screen 3:
and i have no idea how to fix this or why it is doing this. been trying for 3 hours now
can anyone help with a hint at least, or a link to where i can find a good print function example?
(i have attached the source code in the post)
thanks