Rev 9831 | Rev 9926 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9831 | Rev 9910 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License. ;; |
4 | ;; Distributed under terms of the GNU General Public License. ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 9831 $ |
8 | $Revision: 9910 $ |
9 | 9 | ||
10 | align 4 ;3A08 |
10 | align 4 ;3A08 |
11 | build_interrupt_table: |
11 | build_interrupt_table: |
Line 523... | Line 523... | ||
523 | add eax, 8 |
523 | add eax, 8 |
524 | cmp eax, hotkey_buffer+120*8 |
524 | cmp eax, hotkey_buffer+120*8 |
525 | jb .loop2 |
525 | jb .loop2 |
Line 526... | Line 526... | ||
526 | 526 | ||
527 | mov ecx, esi ; remove buttons |
527 | mov ecx, esi ; remove buttons |
528 | bnewba2: |
528 | .bnewba2: |
529 | mov edi, [BTN_ADDR] |
529 | mov edi, [BTN_ADDR] |
530 | mov eax, edi |
530 | mov eax, edi |
531 | cld |
531 | cld |
532 | movzx ebx, word [edi] |
532 | movzx ebx, word [edi] |
533 | inc bx |
533 | inc bx |
534 | bnewba: |
534 | .bnewba: |
535 | dec bx |
535 | dec bx |
536 | jz bnmba |
536 | jz .bnmba |
537 | add eax, 0x10 |
537 | add eax, 0x10 |
538 | cmp cx, [eax] |
538 | cmp cx, [eax] |
539 | jnz bnewba |
539 | jnz .bnewba |
540 | pusha |
540 | pusha |
541 | mov ecx, ebx |
541 | mov ecx, ebx |
542 | inc ecx |
542 | inc ecx |
543 | shl ecx, 4 |
543 | shl ecx, 4 |
544 | mov ebx, eax |
544 | mov ebx, eax |
545 | add eax, 0x10 |
545 | add eax, 0x10 |
546 | call memmove |
546 | call memmove |
547 | dec dword [edi] |
547 | dec dword [edi] |
548 | popa |
548 | popa |
549 | jmp bnewba2 |
549 | jmp .bnewba2 |
Line 550... | Line 550... | ||
550 | bnmba: |
550 | .bnmba: |
551 | 551 | ||
552 | pusha ; save window coordinates for window restoring |
552 | pusha ; save window coordinates for window restoring |
553 | cld |
553 | cld |
Line 660... | Line 660... | ||
660 | pusha ; remove all port reservations |
660 | pusha ; remove all port reservations |
661 | mov edx, esi |
661 | mov edx, esi |
662 | shl edx, BSF sizeof.APPDATA |
662 | shl edx, BSF sizeof.APPDATA |
663 | mov edx, [SLOT_BASE + edx + APPDATA.tid] |
663 | mov edx, [SLOT_BASE + edx + APPDATA.tid] |
Line 664... | Line 664... | ||
664 | 664 | ||
665 | rmpr0: |
665 | .rmpr0: |
Line 666... | Line 666... | ||
666 | mov esi, [RESERVED_PORTS] |
666 | mov esi, [RESERVED_PORTS] |
667 | 667 | ||
Line 668... | Line 668... | ||
668 | test esi, esi |
668 | test esi, esi |
Line 669... | Line 669... | ||
669 | jz rmpr9 |
669 | jz .rmpr9 |
670 | 670 | ||
671 | rmpr3: |
671 | .rmpr3: |
Line 672... | Line 672... | ||
672 | 672 | ||
673 | mov edi, esi |
673 | mov edi, esi |
Line 674... | Line 674... | ||
674 | shl edi, 4 |
674 | shl edi, 4 |
675 | add edi, RESERVED_PORTS |
675 | add edi, RESERVED_PORTS |
Line 676... | Line 676... | ||
676 | 676 | ||
Line 677... | Line 677... | ||
677 | cmp edx, [edi] |
677 | cmp edx, [edi] |
Line 678... | Line 678... | ||
678 | je rmpr4 |
678 | je .rmpr4 |
679 | 679 | ||
680 | dec esi |
680 | dec esi |
Line 693... | Line 693... | ||
693 | cld |
693 | cld |
694 | rep movsb |
694 | rep movsb |
Line 695... | Line 695... | ||
695 | 695 | ||
Line 696... | Line 696... | ||
696 | dec dword [RESERVED_PORTS] |
696 | dec dword [RESERVED_PORTS] |
Line 697... | Line 697... | ||
697 | 697 | ||
698 | jmp rmpr0 |
698 | jmp .rmpr0 |
Line 699... | Line 699... | ||
699 | 699 | ||
700 | rmpr9: |
700 | .rmpr9: |
701 | popa |
701 | popa |