Rev 937 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 937 | Rev 944 | ||
---|---|---|---|
Line 106... | Line 106... | ||
106 | inline fastcall dword WaitEvent(){ |
106 | inline fastcall dword WaitEvent(){ |
107 | EAX = 10; // wait here for event |
107 | EAX = 10; // wait here for event |
108 | $int 0x40 |
108 | $int 0x40 |
109 | } |
109 | } |
Line 110... | Line 110... | ||
110 | 110 | ||
111 | /*inline fastcall void SetEventMask(dword EBX) |
111 | inline fastcall void SetEventMask(dword EBX) |
112 | { |
112 | { |
113 | EAX = 40; |
113 | EAX = 40; |
114 | $int 0x40 |
114 | $int 0x40 |
Line 115... | Line 115... | ||
115 | } */ |
115 | } |
116 | 116 | ||
117 | inline fastcall word GetKey(){ |
117 | inline fastcall word GetKey(){ |
118 | EAX = 2; // just read this key from buffer |
118 | EAX = 2; // just read this key from buffer |
Line 329... | Line 329... | ||
329 | ESI = 8; |
329 | ESI = 8; |
330 | EBP = 0; |
330 | EBP = 0; |
331 | $int 0x40 |
331 | $int 0x40 |
332 | }16+y+skin_width; |
332 | } |
Line -... | Line 333... | ||
- | 333 | ||
- | 334 | //------------------------------------------------------------------------------ |
|
- | 335 | inline fastcall dword WriteDebug(dword EDX) |
|
- | 336 | { |
|
- | 337 | $push ebx |
|
- | 338 | $push ecx |
|
- | 339 | $mov eax, 63 |
|
- | 340 | $mov ebx, 1 |
|
- | 341 | next_char: |
|
- | 342 | $mov ecx, DSDWORD[edx] |
|
- | 343 | $or cl, cl |
|
- | 344 | $jz done |
|
- | 345 | $int 0x40 |
|
- | 346 | $inc edx |
|
- | 347 | $jmp next_char |
|
- | 348 | done: |
|
- | 349 | $mov cl, 13 |
|
- | 350 | $int 0x40 |
|
- | 351 | $mov cl, 10 |
|
- | 352 | $int 0x40 |
|
- | 353 | $pop ecx |
|
- | 354 | $pop ebx |