Rev 2709 | Rev 3355 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2709 | Rev 3320 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;; |
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 2709 $ |
8 | $Revision: 3320 $ |
9 | 9 | ||
10 | 10 | ||
Line 357... | Line 357... | ||
357 | test ch, ch |
357 | test ch, ch |
358 | js .writekey |
358 | js .writekey |
Line 359... | Line 359... | ||
359 | 359 | ||
360 | xor [kb_state], eax |
360 | xor [kb_state], eax |
361 | xor [kb_lights], bl |
- | |
362 | push ecx |
- | |
363 | call set_lights |
- | |
364 | pop ecx |
361 | xor [kb_lights], bl |
365 | .writekey: |
362 | .writekey: |
366 | pushad |
363 | pushad |
367 | ; test for system hotkeys |
364 | ; test for system hotkeys |
368 | movzx eax, ch |
365 | movzx eax, ch |
Line 493... | Line 490... | ||
493 | call mutex_unlock |
490 | call mutex_unlock |
494 | pop esi ebx |
491 | pop esi ebx |
495 | ret |
492 | ret |
Line 496... | Line 493... | ||
496 | 493 | ||
- | 494 | ps2_set_lights: |
|
497 | ps2_set_lights: |
495 | stdcall disable_irq, 1 |
498 | mov al, 0xED |
496 | mov al, 0xED |
499 | call kb_write |
497 | call kb_write |
500 | mov al, [esp+8] |
498 | mov al, [esp+8] |
- | 499 | call kb_write |
|
501 | call kb_write |
500 | stdcall enable_irq, 1 |
Line 502... | Line 501... | ||
502 | ret 8 |
501 | ret 8 |
503 | 502 | ||
504 | ;// mike.dld ] |
503 | ;// mike.dld ] |