Rev 33 | Rev 41 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 33 | Rev 38 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | max_buttons=4095 |
1 | max_buttons=4095 |
2 | dececx: |
2 | dececx: |
3 | - | ||
4 | push eax |
- | |
5 | push edx |
3 | push edx |
6 | push ecx |
4 | push ecx |
Line 7... | Line 5... | ||
7 | 5 | ||
8 | mov edx,1 |
6 | mov edx,2 |
Line 9... | Line 7... | ||
9 | dececl: |
7 | .loop: |
10 | - | ||
11 | movzx eax,byte [esp+edx] |
8 | |
12 | cmp eax,0x20 |
9 | cmp byte [esp+edx],0x20 |
13 | jge @f |
10 | jae @f |
14 | mov [esp+edx],byte 0x20 |
11 | mov [esp+edx],byte 0x20 |
Line 15... | Line -... | ||
15 | @@: |
- | |
16 | sub [esp+edx],byte 0x20 |
12 | @@: |
17 | 13 | sub [esp+edx],byte 0x20 |
|
Line 18... | Line 14... | ||
18 | add edx,1 |
14 | |
19 | cmp edx,4 |
15 | dec edx |
20 | jbe dececl |
- | |
21 | 16 | jns .loop |
|
Line -... | Line 17... | ||
- | 17 | ||
- | 18 | pop ecx |
|
- | 19 | pop edx |
|
- | 20 | ret |
|
- | 21 | ||
- | 22 | incecx: |
|
- | 23 | push edx |
|
- | 24 | push ecx |
|
- | 25 | ||
- | 26 | mov edx,2 |
|
- | 27 | .loop: |
|
- | 28 | ||
- | 29 | cmp byte [esp+edx],0xdf |
|
- | 30 | jbe @f |
|
- | 31 | mov [esp+edx],byte 0xdf |
|
- | 32 | @@: |
|
- | 33 | add [esp+edx],byte 0x20 |
|
- | 34 | ||
- | 35 | dec edx |
|
- | 36 | jns .loop |
|
- | 37 | pop ecx |
|
- | 38 | pop edx |
|
- | 39 | ret |
|
- | 40 | ||
- | 41 | incecx2: |
|
- | 42 | push edx |
|
- | 43 | push ecx |
|
- | 44 | ||
- | 45 | mov edx,2 |
|
- | 46 | .loop: |
|
- | 47 | ||
- | 48 | cmp byte [esp+edx],0xeb |
|
- | 49 | jbe @f |
|
- | 50 | mov [esp+edx],byte 0xeb |
|
- | 51 | @@: |
|
- | 52 | add [esp+edx],byte 0x14 |
|
- | 53 | ||
Line 22... | Line 54... | ||
22 | pop ecx |
54 | dec edx |
Line 23... | Line 55... | ||
23 | pop edx |
55 | jns .loop |
24 | pop eax |
56 | pop ecx |
Line 48... | Line 80... | ||
48 | mov bx,dx |
80 | mov bx,dx |
49 | add ax,word [esp+12] |
81 | add ax,word [esp+12] |
50 | mov esi,ebx |
82 | mov esi,ebx |
51 | mov edi,0 |
83 | mov edi,0 |
52 | mov ecx,[esp+0] |
84 | mov ecx,[esp+0] |
53 | add ecx,0x202020 |
85 | call incecx |
54 | call [draw_line] |
86 | call [draw_line] |
Line 55... | Line 87... | ||
55 | 87 | ||
56 | movzx edx,word [esp+8] |
88 | movzx edx,word [esp+8] |
57 | add ebx,edx |
89 | add ebx,edx |
Line 72... | Line 104... | ||
72 | mov dx,[esp+8+4] |
104 | mov dx,[esp+8+4] |
73 | add bx,dx |
105 | add bx,dx |
74 | pop edx |
106 | pop edx |
75 | mov edi,0 |
107 | mov edi,0 |
76 | mov ecx,[esp+0] |
108 | mov ecx,[esp+0] |
77 | add ecx,0x202020 |
109 | call incecx |
78 | call [draw_line] |
110 | call [draw_line] |
Line 79... | Line 111... | ||
79 | 111 | ||
80 | mov esi,edx |
112 | mov esi,edx |
81 | mov dx,[esp+12] |
113 | mov dx,[esp+12] |
Line 162... | Line 194... | ||
162 | movzx ecx,word [4+32+esp+12] |
194 | movzx ecx,word [4+32+esp+12] |
163 | add eax,ecx |
195 | add eax,ecx |
164 | mov ecx,[4+32+esp+0] |
196 | mov ecx,[4+32+esp+0] |
165 | cmp [buttontype],dword 0 |
197 | cmp [buttontype],dword 0 |
166 | je @f |
198 | je @f |
167 | add ecx,0x141414 |
199 | call incecx2 |
168 | @@: |
200 | @@: |
169 | movzx edi,word [esp] |
201 | movzx edi,word [esp] |
Line 170... | Line 202... | ||
170 | 202 | ||
171 | ; |
203 | ; |