Added Num Pad.

git-svn-id: svn://kolibrios.org@582 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Rus 2007-07-16 20:21:34 +00:00
parent b26531da12
commit 2199c90dd9

View File

@ -271,6 +271,27 @@ irq1:
jnz .exit.irq1
test bl, bl
jz .exit.irq1
;.........................Part1 Start.......Code by Rus, optimize by Ghost...................................
test [kb_state], VKEY_NUMLOCK
jz .dowrite
cmp ch, 55
jnz @f
mov bl, 0x2A ;*
jmp .dowrite
@@:
cmp ch, 71
jb .dowrite
cmp ch, 83
ja .dowrite
push eax
movzx eax, ch
mov bl, [numlock_map + eax - 71]
pop eax
;.........................Part1 End.................................................
jmp .dowrite
.scancode:
mov bl, ch
@ -300,3 +321,19 @@ set_lights:
ret
;// mike.dld ]
;..........................Part2 Start.......Code by Rus.......................................
numlock_map:
db 0x37 ;Num 7
db 0x38 ;Num 8
db 0x39 ;Num 9
db 0x2D ;Num -
db 0x34 ;Num 4
db 0x35 ;Num 5
db 0x36 ;Num 6
db 0x2B ;Num +
db 0x31 ;Num 1
db 0x32 ;Num 2
db 0x33 ;Num 3
db 0x30 ;Num 0
db 0x2E ;Num .
;..........................Part2 End................................................