forked from KolibriOS/kolibrios
Function 2 (get the code of the pressed key) for AL = 0 in EAX bits 16-23 = contain scancode for pressed key
git-svn-id: svn://kolibrios.org@4588 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -454,7 +454,11 @@ align 4
|
||||
cmp al, 120
|
||||
jae .result ;overflow
|
||||
inc byte[KEY_COUNT]
|
||||
mov [KEY_COUNT+1+eax], dl
|
||||
mov [KEY_BUFF+eax], dl
|
||||
; store empty scancode
|
||||
add eax, 120+2
|
||||
mov [KEY_BUFF+eax], byte 0
|
||||
sub eax, 120+2
|
||||
;--------------------------------------
|
||||
align 4
|
||||
.result:
|
||||
|
Reference in New Issue
Block a user