I've implemented some code to handle keypresses and everything seemed to work fine at first. However, I started seeing random spaces when I print the text I type on screen.
After some debugging, I am left with the following loop in my kernel:
Code: Select all
while (true)
{
char woopwoop = foo();
if (woopwoop != 0)
{
putChar(woopwoop);
updateCursor();
}
}
Code: Select all
char foo(void)
{
return 0;
}
I wanted to start a debugging session, but the problems seems to be that a value seems to be changing, and I have no idea how to debug this...
Weird stuff! I hope somebody can help me