kismetlafiete
Programmer
My classmate and I are working on a pong game for our final project in our assembly class this semster... it's completely finished, the one problem we have is getting the input. We use the 16h interrupt (ah = 0) to see if a key was pressed in order to move a paddle. The problem comes after that... we tried to call 16h (ah = 1) after checking and hoped it would just clear it for us since a key was pressed already, but it waits for the key to be pressed again(although it does clear it).
If we remove the call to 16h (ah = 1), it never stops reading that the key was pressed. So we basically need a way to do the following:
1) was a keypressed?
2) decide which one it was
3) take the appropriate action
4) clear the key state(without pausing the program) to avoid looping.
we can do it all except for #4, so any help?
If we remove the call to 16h (ah = 1), it never stops reading that the key was pressed. So we basically need a way to do the following:
1) was a keypressed?
2) decide which one it was
3) take the appropriate action
4) clear the key state(without pausing the program) to avoid looping.
we can do it all except for #4, so any help?