I'm using this code to get input from keyboard but i can't figure a way to get combination keys like "shift + a" = A
keypressed:
in al,60h
test al,80h
jnz keypressed
and 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 is a procedure i made which prints anything in al.