kprint ouput issue.[solved]
Posted: Sat Mar 08, 2008 8:36 pm
So I started writing my kernel with the help of the bare bones tutorial. As a start I started to implement a basic kprint function, when I tested the "kernel" on my computer all it did was output a bunch of female symbols in lots of different colors but it was the same length of the string I had it print.
I am completely oblivious to what is wrong with my code, probably something obvious.
I really don't get it.
I am completely oblivious to what is wrong with my code, probably something obvious.
Code: Select all
char *texmem = (char *) 0xB8000;
char *cline = (char *) 0xB8000;
unsigned char color = 0x0C;
Code: Select all
void kprint(char *text)//prints a string to the screen
{
while(*text != '\0')
{
*texmem = color;
texmem++;
*texmem = *text;
texmem++;
text++;
}
}