Rev 3045 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3045 | Rev 3113 | ||
---|---|---|---|
Line 105... | Line 105... | ||
105 | $mov eax,18; |
105 | $mov eax,18; |
106 | $mov ebx,21; |
106 | $mov ebx,21; |
107 | $int 0x40 |
107 | $int 0x40 |
108 | } |
108 | } |
Line 109... | Line 109... | ||
109 | 109 | ||
110 | inline fastcall int ActiveProcess() |
110 | inline fastcall int GetActiveProcess() |
111 | { |
111 | { |
112 | $mov eax,18; |
112 | $mov eax,18; |
113 | $mov ebx,7; |
113 | $mov ebx,7; |
114 | $int 0x40 |
114 | $int 0x40 |
Line -... | Line 115... | ||
- | 115 | } |
|
- | 116 | ||
- | 117 | inline fastcall void ActivateWindow( ECX) |
|
- | 118 | { |
|
- | 119 | EAX = 18; |
|
- | 120 | EBX = 3; |
|
- | 121 | $int 0x40 |
|
115 | } |
122 | } |
Line 116... | Line 123... | ||
116 | 123 | ||
117 | //------------------------------------------------------------------------------- |
124 | //------------------------------------------------------------------------------- |
118 | 125 | ||
Line 127... | Line 134... | ||
127 | $int 0x40 |
134 | $int 0x40 |
128 | } |
135 | } |
Line 129... | Line 136... | ||
129 | 136 | ||
130 | inline fastcall word GetKey(){ //+Gluk fix |
137 | inline fastcall word GetKey(){ //+Gluk fix |
131 | $push edx |
138 | $push edx |
132 | @getkey: |
139 | GETKEY: |
133 | $mov eax,2 |
140 | $mov eax,2 |
134 | $int 0x40 |
141 | $int 0x40 |
135 | $cmp eax,1 |
142 | $cmp eax,1 |
136 | $jne getkeyi |
143 | $jne GETKEYI |
137 | $mov ah,dh |
144 | $mov ah,dh |
138 | $jmp getkeyii //jz? |
145 | $jmp GETKEYII //jz? |
139 | @getkeyi: |
146 | GETKEYI: |
140 | $mov dh,ah |
147 | $mov dh,ah |
141 | $jmp getkey |
148 | $jmp GETKEY |
142 | @getkeyii: |
149 | GETKEYII: |
143 | $pop edx |
150 | $pop edx |
144 | EAX = EAX >> 8; |
151 | EAX = EAX >> 8; |
Line 145... | Line 152... | ||
145 | } |
152 | } |
Line 205... | Line 212... | ||
205 | EAX = 14; |
212 | EAX = 14; |
206 | $int 0x40 |
213 | $int 0x40 |
207 | $and eax,0x0000FFFF |
214 | $and eax,0x0000FFFF |
208 | } |
215 | } |
Line -... | Line 216... | ||
- | 216 | ||
- | 217 | inline fastcall dword GetScreenWidth() |
|
- | 218 | { |
|
- | 219 | $mov eax, 14 |
|
- | 220 | $int 0x40 |
|
- | 221 | $shr eax, 16 |
|
- | 222 | } |
|
209 | 223 | ||
210 | inline fastcall void MoveSize( EBX,ECX,EDX,ESI){ |
224 | inline fastcall void MoveSize( EBX,ECX,EDX,ESI){ |
211 | $mov eax,67; |
225 | $mov eax,67; |
212 | $int 0x40 |
226 | $int 0x40 |
Line 292... | Line 306... | ||
292 | //------------------------------------------------------------------------------ |
306 | //------------------------------------------------------------------------------ |
293 | inline fastcall void debug( EDX) |
307 | inline fastcall void debug( EDX) |
294 | { |
308 | { |
295 | $mov eax, 63 |
309 | $mov eax, 63 |
296 | $mov ebx, 1 |
310 | $mov ebx, 1 |
297 | next_char: |
311 | NEXT_CHAR: |
298 | $mov ecx, DSDWORD[edx] |
312 | $mov ecx, DSDWORD[edx] |
299 | $or cl, cl |
313 | $or cl, cl |
300 | $jz done |
314 | $jz DONE |
301 | $int 0x40 |
315 | $int 0x40 |
302 | $inc edx |
316 | $inc edx |
303 | $jmp next_char |
317 | $jmp NEXT_CHAR |
304 | done: |
318 | DONE: |
305 | $mov cl, 13 |
319 | $mov cl, 13 |
306 | $int 0x40 |
320 | $int 0x40 |
307 | $mov cl, 10 |
321 | $mov cl, 10 |
308 | $int 0x40 |
322 | $int 0x40 |
309 | }16+y; |
323 | }16+y; |
310 | ><16+y; |
324 | ><16+y; |