??? 06/23/06 13:00 Modified: 06/23/06 13:39 Read: times |
#118944 - why do you check for keys a few microsec Responding to: ???'s previous message |
ACALL KEYPRESSED; ; to check whether any key is pressed or not JNZ CALCULATE ; if key is pressed then jump to calculate to check is the key ; pressed is valid key or the previous key is kept pressed till ; now JMP ALTER; ; If no key is pressed then clear the flag which check whether the ; previous key is kept pressed till now CALCULATE: ACALL KEYPRESSED ; again check whether key is pressed or not why do you check for keys a few microseconds apart? Erik PS the comments are nice, it IS readable (or I would not have posted the above), but it is still spaghetti, I get lost after a few lines. It seems you are trying to get a result by "throwing code at it" rather than "deciding what is needed and then coding" |