I use this code to store the keys pressed in a 11 byte buffer:
MOV DI,offset kbd_line MOV AX,1 @@looper1_kbd: CMP AX,100000000000b JE @@ende_kbd MOV BX,AX OUT 13h,AX IN AL,13h STOSB MOV AX,BX SHL AX,1 JMP @@looper1_kbd @@ende_kbd:
If I test the f keys using the folowing function:
MOV AL,byte ptr kbd_line+10 AND AL,01000000b CMP AL,01000000b ;Pressed? JNE @@no_console call display_console
it works fine and it executes the proc.
The problem is that if I press left on the ursor pad the function is also called!
Why can this happen ????