Guest_imported
New member
- Jan 1, 1970
- 0
I'm working on a program that takes a keypress as input and outputs the scan code, ASCII code, and whether any control keys (like shift, ctrl, numlock, etc.) are pressed. I've got the scan code and ASCII code working I think, but I'm not sure how to check what control keys are pressed. I can get the "keyboard status byte" using:
mov ah,12
int 16h
it returns for some reason 13 bytes, I think I have to look at the lower 8 bytes regardless. my question is, how do I check which bytes are set, and do I have to run through the process once for each byte?
thanks for any help
mov ah,12
int 16h
it returns for some reason 13 bytes, I think I have to look at the lower 8 bytes regardless. my question is, how do I check which bytes are set, and do I have to run through the process once for each byte?
thanks for any help