Rev 593 | Rev 671 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 593 | Rev 665 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. 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: 593 $ |
8 | $Revision: 665 $ |
9 | 9 | ||
10 | 10 | ||
Line 491... | Line 491... | ||
491 | mov eax, [event_sched] |
491 | mov eax, [event_sched] |
492 | eventoccur: |
492 | eventoccur: |
493 | mov [esp+36], eax |
493 | mov [esp+36], eax |
494 | ret |
494 | ret |
Line -... | Line 495... | ||
- | 495 | ||
- | 496 | sys_sendwindowmsg: |
|
- | 497 | dec eax |
|
- | 498 | jnz .ret |
|
- | 499 | cmp ebx, 3 |
|
- | 500 | jz .sendbtn |
|
- | 501 | cmp ebx, 2 |
|
- | 502 | jnz .ret |
|
- | 503 | .sendkey: |
|
- | 504 | pushf |
|
- | 505 | cli |
|
- | 506 | movzx eax, byte [KEY_COUNT] |
|
- | 507 | cmp al, 120 |
|
- | 508 | jae .overflow |
|
- | 509 | inc eax |
|
- | 510 | mov [KEY_COUNT], al |
|
- | 511 | mov [KEY_COUNT+eax], cl |
|
- | 512 | jmp .ok |
|
- | 513 | .overflow: |
|
- | 514 | popf |
|
- | 515 | mov dword [esp+36], 1 |
|
- | 516 | ret |
|
- | 517 | .sendbtn: |
|
- | 518 | pushf |
|
- | 519 | cli |
|
- | 520 | cmp byte [BTN_COUNT], 0 |
|
- | 521 | jnz .overflow |
|
- | 522 | mov byte [BTN_COUNT], 1 |
|
- | 523 | mov [BTN_BUFF], ecx |
|
- | 524 | .ok: |
|
- | 525 | popf |
|
- | 526 | and dword [esp+36], 0 |
|
- | 527 | .ret: |
|
- | 528 | ret |
|
495 | 529 | ||
Line 496... | Line 530... | ||
496 | get_event_for_app: |
530 | get_event_for_app: |
Line 497... | Line 531... | ||
497 | 531 |