Jump to content



Photo
- - - - -

Keyboard Problem


  • Please log in to reply
No replies to this topic

#1 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 11 July 2003 - 06:16 AM

I've the folowing problem:

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 ????




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users