Rev 2638 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2638 | Rev 2649 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | ; ; |
2 | ; ; |
3 | ; TASK PANEL for KolibriOS - Compile with fasm ; |
3 | ; TASK PANEL for KolibriOS - Compile with fasm ; |
4 | ; ; |
4 | ; ; |
5 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
5 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;------------------------------------------------------------------------------ |
6 | ;------------------------------------------------------------------------------ |
- | 7 | ; version: 2.23 |
|
- | 8 | ; last update: 26/04/2012 |
|
- | 9 | ; changed by: Marat Zakiyanov aka Mario79, aka Mario |
|
- | 10 | ; changes: Using new f18.23 - minimize all windows |
|
- | 11 | ;------------------------------------------------------------------------------ |
|
7 | ; version: 2.22 |
12 | ; version: 2.22 |
8 | ; last update: 20/04/2012 |
13 | ; last update: 20/04/2012 |
9 | ; changed by: Marat Zakiyanov aka Mario79, aka Mario |
14 | ; changed by: Marat Zakiyanov aka Mario79, aka Mario |
10 | ; changes: Activation mechanism when trying to run an existing appl. |
15 | ; changes: Activation mechanism when trying to run an existing appl. |
11 | ; Forced redrawing the background after the clean desktop (Win+D) |
16 | ; Forced redrawing the background after the clean desktop (Win+D) |
Line 1027... | Line 1032... | ||
1027 | @@: |
1032 | @@: |
1028 | mcall 18, 22 |
1033 | mcall 18, 22 |
1029 | inc edx |
1034 | inc edx |
1030 | cmp edx, [max_slot] |
1035 | cmp edx, [max_slot] |
1031 | jbe @b |
1036 | jbe @b |
1032 | ; jmp still |
- | |
1033 | ret |
1037 | ret |
1034 | ;------------------------------------------------------------------------------ |
1038 | ;------------------------------------------------------------------------------ |
1035 | ;align 4 |
- | |
1036 | ;swap_minimized_desktop: |
- | |
1037 | ; xor esi, esi |
- | |
1038 | ; inc esi |
- | |
1039 | ; jmp min_swap_desktop |
- | |
1040 | ;------------------------------------------------------------------------------ |
- | |
1041 | align 4 |
1039 | align 4 |
1042 | clean_desktop: |
1040 | clean_desktop: |
1043 | mov [clean_desktop_minimize],0 |
- | |
1044 | ; xor esi,esi |
- | |
1045 | ;-------------------------------------- |
- | |
1046 | ;align 4 |
- | |
1047 | ;min_swap_desktop: ; input esi 0 - min, <>0 swap |
- | |
1048 | mov ecx, 2 ; ç «ìë© ®¬¥à ᫮⠯à®æ¥áá |
- | |
1049 | mov ebx, process_info_buffer |
- | |
1050 | ;-------------------------------------- |
- | |
1051 | align 4 |
- | |
1052 | .loop1: |
- | |
1053 | cmp ecx, [this_slot] |
- | |
1054 | je .loop1xx |
- | |
1055 | - | ||
1056 | mcall 9 |
1041 | mcall 18,23 |
1057 | mov [max_slot], eax |
- | |
1058 | mov dx, word [process_info_buffer+50] |
- | |
1059 | cmp dx, 9 ; ஢¥àª ᢮¡®¤¥ «¨ ¤ ë© á«®â |
- | |
1060 | jz .loop1xx |
- | |
1061 | - | ||
1062 | mov edx, dword [ebx+10] |
- | |
1063 | cmp dl, '@' |
- | |
1064 | je .loop1xx |
- | |
1065 | - | ||
1066 | cmp dword [ebx+10], 'ICON' |
- | |
1067 | jnz @f |
- | |
1068 | - | ||
1069 | cmp [ebx+42], dword 51 |
- | |
1070 | jnz @f |
- | |
1071 | - | ||
1072 | cmp [ebx+46], dword 51 |
- | |
1073 | jz .loop1xx |
- | |
1074 | ;-------------------------------------- |
- | |
1075 | align 4 |
- | |
1076 | @@: |
- | |
1077 | cmp [ebx+10], dword ' ' |
- | |
1078 | jz .loop1xx |
- | |
1079 | - | ||
1080 | pusha |
- | |
1081 | mov edx, ecx |
- | |
1082 | xor ecx, ecx |
1042 | test eax,eax |
1083 | ; or esi, esi |
- | |
1084 | ; jz @f |
- | |
1085 | - | ||
1086 | movzx eax, byte [process_info_buffer+70] |
- | |
1087 | and eax, 2 ; mask minimize |
- | |
1088 | jnz @f |
1043 | jnz @f |
1089 | - | ||
1090 | mov [clean_desktop_minimize],1 |
- | |
1091 | ; mov ecx, 2 ; restore |
- | |
1092 | mcall 18, 22 |
- | |
1093 | ;-------------------------------------- |
- | |
1094 | align 4 |
- | |
1095 | @@: |
- | |
1096 | popa |
- | |
1097 | ;-------------------------------------- |
- | |
1098 | align 4 |
- | |
1099 | .loop1xx: |
- | |
1100 | inc ecx |
- | |
1101 | cmp ecx, [max_slot] |
- | |
1102 | jbe .loop1 |
- | |
1103 | - | ||
1104 | cmp [clean_desktop_minimize],1 |
- | |
1105 | je @f |
- | |
1106 | call restore_desktop |
1044 | call restore_desktop |
1107 | ret |
- | |
1108 | ;-------------------------------------- |
1045 | ;-------------------------------------- |
1109 | align 4 |
1046 | align 4 |
1110 | @@: |
1047 | @@: |
1111 | mcall 68,1 |
- | |
1112 | mcall 15,3 |
- | |
1113 | ret |
1048 | ret |
1114 | ; jmp still |
- | |
1115 | ;------------------------------------------------------------------------------ |
1049 | ;------------------------------------------------------------------------------ |
1116 | align 4 |
1050 | align 4 |
1117 | conversion_HEX_to_ASCII: |
1051 | conversion_HEX_to_ASCII: |
1118 | ror eax,12 |
1052 | ror eax,12 |
1119 | mov ecx,4 |
1053 | mov ecx,4 |