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:
Marat Zakiyanov (Mario79)
2014-02-25 01:03:37 +00:00
parent 15fd6b2c81
commit ce96116465
6 changed files with 23 additions and 6 deletions

View File

@@ -488,7 +488,12 @@ send_scancode:
jae .exit.irq1
inc eax
mov [KEY_COUNT], al
mov [KEY_COUNT+eax], bl
; store ascii or scancode
mov [KEY_COUNT+eax], bl ; actually KEY_BUFF + EAX - 1
; store original scancode
add eax, 120+2
mov [KEY_COUNT+eax], ch ; actually KEY_BUFF + EAX - 1
sub eax, 120+2
.exit.irq1:
ret
;---------------------------------------------------------------------