Rev 3356 | Rev 3598 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3356 | Rev 3534 | ||
---|---|---|---|
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: 3356 $ |
8 | $Revision: 3534 $ |
9 | 9 | ||
10 | 10 | ||
Line 337... | Line 337... | ||
337 | 337 | ||
338 | cmp ch, 53h |
338 | cmp ch, 53h |
Line 339... | Line 339... | ||
339 | jne .noctrlaltdel |
339 | jne .noctrlaltdel |
- | 340 | ||
340 | 341 | mov [ctrl_alt_del], 1 |
|
341 | mov [ctrl_alt_del], 1 |
342 | call wakeup_osloop |
342 | .noctrlaltdel: |
343 | .noctrlaltdel: |
Line 343... | Line 344... | ||
343 | test dl, VKEY_CONTROL ; ctrl on ? |
344 | test dl, VKEY_CONTROL ; ctrl on ? |
Line 488... | Line 489... | ||
488 | jae .exit.irq1 |
489 | jae .exit.irq1 |
489 | inc eax |
490 | inc eax |
490 | mov [KEY_COUNT], al |
491 | mov [KEY_COUNT], al |
491 | mov [KEY_COUNT+eax], bl |
492 | mov [KEY_COUNT+eax], bl |
492 | .exit.irq1: |
493 | .exit.irq1: |
493 | mov [check_idle_semaphore], 5 |
- | |
494 | ret |
494 | ret |
495 | ;--------------------------------------------------------------------- |
495 | ;--------------------------------------------------------------------- |
496 | set_lights: |
496 | set_lights: |
497 | push ebx esi |
497 | push ebx esi |
498 | mov ecx, keyboard_list_mutex |
498 | mov ecx, keyboard_list_mutex |
Line 524... | Line 524... | ||
524 | call kb_write |
524 | call kb_write |
525 | stdcall enable_irq, 1 |
525 | stdcall enable_irq, 1 |
526 | ret 8 |
526 | ret 8 |
Line 527... | Line 527... | ||
527 | 527 | ||
528 | ;// mike.dld ] |
528 | ;// mike.dld ] |
529 | check_lights_state: |
529 | proc check_lights_state_has_work? |
530 | mov al, [kb_lights] |
530 | mov al, [kb_lights] |
- | 531 | cmp al, [old_kb_lights] |
|
- | 532 | ret |
|
- | 533 | endp |
|
- | 534 | ||
- | 535 | check_lights_state: |
|
531 | cmp al, [old_kb_lights] |
536 | call check_lights_state_has_work? |
532 | jz .nothing |
537 | jz .nothing |
533 | mov [old_kb_lights], al |
538 | mov [old_kb_lights], al |
534 | call set_lights |
539 | call set_lights |
535 | .nothing: |
540 | .nothing: |