Rev 2825 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2825 | Rev 2839 | ||
---|---|---|---|
Line 146... | Line 146... | ||
146 | $mov eax,17 |
146 | $mov eax,17 |
147 | $int 0x40 |
147 | $int 0x40 |
148 | $shr eax,8 |
148 | $shr eax,8 |
149 | } |
149 | } |
Line -... | Line 150... | ||
- | 150 | ||
- | 151 | //---------------------------------------- |
|
150 | 152 | ||
151 | struct proc_info |
153 | struct proc_info |
152 | { |
154 | { |
153 | #define SelfInfo -1 |
155 | #define SelfInfo -1 |
154 | dword use_cpu; |
156 | dword use_cpu; |
Line 167... | Line 169... | ||
167 | { |
169 | { |
168 | $mov eax,9; |
170 | $mov eax,9; |
169 | $int 0x40 |
171 | $int 0x40 |
170 | } |
172 | } |
Line -... | Line 173... | ||
- | 173 | ||
- | 174 | inline fastcall int GetPointOwner( EBX, ECX) //ebx=m.x, ecx=m.y |
|
- | 175 | { |
|
- | 176 | $mov eax,34 |
|
- | 177 | $int 0x40 |
|
- | 178 | } |
|
171 | 179 | ||
172 | inline fastcall int GetProcessSlot( ECX) |
180 | inline fastcall int GetProcessSlot( ECX) |
173 | { |
181 | { |
174 | EAX = 18; |
182 | EAX = 18; |
175 | EBX = 21; |
183 | EBX = 21; |
Line 181... | Line 189... | ||
181 | EAX = 18; |
189 | EAX = 18; |
182 | EBX = 7; |
190 | EBX = 7; |
183 | $int 0x40 |
191 | $int 0x40 |
184 | } |
192 | } |
Line -... | Line 193... | ||
- | 193 | ||
- | 194 | inline fastcall int CreateThread( ECX,EDX) |
|
- | 195 | { |
|
- | 196 | $mov eax,51 |
|
- | 197 | $mov ebx,1 |
|
- | 198 | $int 0x40 |
|
- | 199 | } |
|
- | 200 | ||
- | 201 | inline fastcall void SwitchToAnotherThread() |
|
- | 202 | { |
|
- | 203 | $mov eax,68 |
|
- | 204 | $mov ebx,1 |
|
- | 205 | $int 0x40 |
|
Line 185... | Line 206... | ||
185 | 206 | } |
|
186 | 207 | ||
187 | inline fastcall ExitProcess() |
208 | inline fastcall ExitProcess() |
188 | { |
209 | { |
Line 277... | Line 298... | ||
277 | EAX = 71; |
298 | EAX = 71; |
278 | EBX = 1; |
299 | EBX = 1; |
279 | $int 0x40; |
300 | $int 0x40; |
280 | } |
301 | } |
Line 281... | Line -... | ||
281 | - | ||
282 | inline fastcall int CreateThread( ECX,EDX) |
- | |
283 | { |
- | |
284 | EAX = 51; |
- | |
285 | EBX = 1; |
- | |
286 | $int 0x40 |
- | |
287 | } |
- | |
288 | 302 | ||
289 | void WriteText(dword x,y,byte fontType, dword color, EDX, ESI) |
303 | void WriteText(dword x,y,byte fontType, dword color, EDX, ESI) |
290 | { |
304 | { |
291 | EAX = 4; |
305 | EAX = 4; |
292 | EBX = x<<16+y; |
306 | EBX = x<<16+y; |