REALLY strange C problem

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
MattCarpenter

REALLY strange C problem

Post 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?
Schol-R-LEA

RE:REALLY strange C problem

Post 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.
Post Reply