General Discussion Undecided where to post - do it here. |
Reply to Thread New Thread |
![]() |
#4 |
|
Here is a short sample of the code I am using:
Code: Code
mov ah,01h ;using 1h so that the program does not wait for key to be pressed, it is only checking to see if it is int 16h ;do the interrupt jz mainloop ;Zero flag is set if no key is pressed ;go on to check what key was pressed and process input |
![]() |
![]() |
#5 |
|
Originally posted by Dr. A. Cula
I found some (rather sketchy) doc that seems to confirm that int 0x16, function 0x01 returns 0 in AL for function keys (http://www.htl-steyr.ac.at/~morg/pci...s/inte1at0.htm). But it also says that AH contains that key's scan code and I think you should use that if AL is 0. Here is a list of keyboard scan codes: http://www.cs.cmu.edu/afs/cs/user/ra...WWW/files.html (I found it in the part A archive, in the INTERRUP.A file). Also see the INTERRUP.D file for some more info on int 0x16. I will try that, thanks. |
![]() |
![]() |
#6 |
|
|
![]() |
Reply to Thread New Thread |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|