Text printing not working (C)
Posted: Fri Aug 24, 2012 9:16 am
Hello everybody!
I was happily developing my own kernel and it worked great!
But something went wrong...
This code worked:
But this one didn't!!
While the first code prints the character on the screen, the second does nothing!! ):
I was happily developing my own kernel and it worked great!
But something went wrong...
This code worked:
Code: Select all
void putch (const char character) {
volatile ushort *where;
where = (ushort*)0xb8000 + (1 * 2);
*where = character | (0x0f << 8);
}
Code: Select all
void putch (const char character) {
volatile ushort *where;
ushort x = 1;
where = (ushort*)0xb8000 + (x * 2);
*where = character | (0x0f << 8);
}