Page 1 of 1

REALLY strange C problem

Posted: Sun Jul 21, 2002 11:00 pm
by MattCarpenter
I have a simple OS i made in ASM and C. My main OPerating system interface and text writing code is in the C file, but I am having a strange problem with it.

The C Code calls a function in the ASM code that gets whatever key is being pressed from the keyboard. I put this value into a switch statement so I can run code for different keys pressed. For some odd reason though, it takes about a second after i press a key for the C code for that key executes. Whats wrong here?

RE:REALLY strange C problem

Posted: Sun Jul 21, 2002 11:00 pm
by Schol-R-LEA
How is the code designed to work? Is the C function calling a scheduler wait on the keyboard interrupt handler, or is it busy-waiting on a function that polls the keyboard? The latter would be considerably slower, though probably not as slow as you describe.