How to use combination keys using IN instruction assembly protected mode? -


i'm using code input keyboard can't figure way combination keys "shift + a" = a

keypressed:      in al,60h      test al,80h      jnz keypressed      , al,7fh      mov bx,table      dec al      xlat      cmp al,0      je key          call put_char key:      in al,60h      test al,80h      jz key      jmp keypressed   table db 0x01,"1234567890-=",0x0e,0x0f,'qwertyuiop[]',0x1c,0,"asdfghjkl;'",0,0,0,"zxcvbnm,./",0,0,0," ",0 

note - putchar procedure made prints in al.

you'll have track shift key-down , key-up events , apply shift state other key events required. or, use bios instead automatically work you.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -