Rev 2874 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2874 | Rev 3003 | ||
---|---|---|---|
Line 113... | Line 113... | ||
113 | $mov ebx,1 |
113 | $mov ebx,1 |
114 | $mov ecx,1 //᪠ª®¤ë |
114 | $mov ecx,1 //᪠ª®¤ë |
115 | $int 0x40 |
115 | $int 0x40 |
116 | } |
116 | } |
Line 117... | Line -... | ||
117 | - | ||
118 | 117 | ||
119 | inline fastcall word GetKey() //+Gluk fix |
118 | inline fastcall word GetKey() //+Gluk fix |
120 | { |
119 | { |
121 | $push edx |
120 | $push edx |
122 | @getkey: |
121 | @getkey: |
Line 210... | Line 209... | ||
210 | $mov eax,18; |
209 | $mov eax,18; |
211 | $mov ebx,18; |
210 | $mov ebx,18; |
212 | $int 0x40 |
211 | $int 0x40 |
213 | } |
212 | } |
Line 214... | Line -... | ||
214 | - | ||
215 | inline fastcall int ExitSystem( ECX) |
- | |
216 | { |
213 | |
217 | #define TURN_OFF 2 |
214 | #define TURN_OFF 2 |
218 | #define REBOOT 3 |
215 | #define REBOOT 3 |
- | 216 | #define KERNEL 4 |
|
219 | #define KERNEL 4 |
217 | inline fastcall int ExitSystem( ECX) |
220 | 218 | { |
|
221 | $mov eax, 18 |
219 | $mov eax, 18 |
222 | $mov ebx, 9 |
220 | $mov ebx, 9 |
223 | $int 0x40 |
221 | $int 0x40 |
Line 280... | Line 278... | ||
280 | { |
278 | { |
281 | $shr eax,cl |
279 | $shr eax,cl |
282 | $and eax,1 |
280 | $and eax,1 |
283 | } |
281 | } |
Line -... | Line 282... | ||
- | 282 | ||
- | 283 | inline fastcall int PlaySpeaker( ESI) |
|
- | 284 | { |
|
- | 285 | $mov eax, 55 |
|
- | 286 | $mov ebx, 55 |
|
- | 287 | $int 0x40 |
|
Line 284... | Line 288... | ||
284 | 288 | } |
|
Line 285... | Line 289... | ||
285 | 289 | ||
286 | //------------------------------------------------------------------------------ |
290 | //------------------------------------------------------------------------------ |
Line 321... | Line 325... | ||
321 | EBX = x<<16+y; |
325 | EBX = x<<16+y; |
322 | ECX = fontType<<24+color; |
326 | ECX = fontType<<24+color; |
323 | $int 0x40; |
327 | $int 0x40; |
324 | } |
328 | } |
Line -... | Line 329... | ||
- | 329 | ||
- | 330 | void WriteNumber(dword x,y,byte fontType, dword color, count, ECX) |
|
- | 331 | { |
|
- | 332 | EAX = 47; |
|
- | 333 | EBX = count<<16; |
|
- | 334 | EDX = x<<16+y; |
|
- | 335 | ESI = fontType<<24+color; |
|
- | 336 | $int 0x40; |
|
- | 337 | } |
|
325 | 338 | ||
326 | void CopyScreen(dword EBX, x, y, sizeX, sizeY) |
339 | void CopyScreen(dword EBX, x, y, sizeX, sizeY) |
327 | { |
340 | { |
328 | EAX = 36; |
341 | EAX = 36; |
329 | ECX = sizeX << 16 + sizeY; |
342 | ECX = sizeX << 16 + sizeY; |