Rev 6662 | Rev 6738 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6662 | Rev 6735 | ||
---|---|---|---|
Line 358... | Line 358... | ||
358 | EAX = 71; |
358 | EAX = 71; |
359 | EBX = 1; |
359 | EBX = 1; |
360 | $int 0x40; |
360 | $int 0x40; |
361 | } |
361 | } |
Line 362... | Line 362... | ||
362 | 362 | ||
363 | void WriteTextB(dword x,y,byte fontType, dword color, EDX) |
363 | :void WriteTextB(dword x,y,byte fontType, dword color, str_offset) |
364 | { |
364 | { |
365 | EAX = 4; |
365 | EAX = 4; |
366 | EBX = x<<16+y; |
366 | EBX = x<<16+y; |
- | 367 | ECX = fontType<<24+color; |
|
367 | ECX = fontType<<24+color; |
368 | EDX = str_offset; |
368 | ESI = 0; |
369 | ESI = 0; |
369 | $int 0x40; |
370 | $int 0x40; |
370 | $add ebx, 1<<16 |
371 | $add ebx, 1<<16 |
371 | $int 0x40 |
372 | $int 0x40 |
Line 372... | Line 373... | ||
372 | } |
373 | } |
373 | 374 | ||
374 | void WriteText(dword x,y,byte fontType, dword color, EDX) |
375 | :void WriteText(dword x,y,byte fontType, dword color, str_offset) |
375 | { |
376 | { |
376 | EAX = 4; |
377 | EAX = 4; |
- | 378 | EBX = x<<16+y; |
|
377 | EBX = x<<16+y; |
379 | ECX = fontType<<24+color; |
378 | ECX = fontType<<24+color; |
380 | EDX = str_offset; |
Line 379... | Line 381... | ||
379 | $int 0x40; |
381 | $int 0x40; |
380 | } |
382 | } |
Line 385... | Line 387... | ||
385 | EBX = x<<16+y; |
387 | EBX = x<<16+y; |
386 | ECX = fontType<<24+color; |
388 | ECX = fontType<<24+color; |
387 | $int 0x40; |
389 | $int 0x40; |
388 | } |
390 | } |
Line 389... | Line 391... | ||
389 | 391 | ||
390 | void WriteNumber(dword x,y,byte fontType, dword color, count, ECX) |
392 | void WriteNumber(dword x,y,byte fontType, dword color, count, number_or_offset) |
391 | { |
393 | { |
392 | EAX = 47; |
394 | EAX = 47; |
- | 395 | EBX = count<<16; |
|
393 | EBX = count<<16; |
396 | ECX = number_or_offset; |
394 | EDX = x<<16+y; |
397 | EDX = x<<16+y; |
395 | ESI = fontType<<24+color; |
398 | ESI = fontType<<24+color; |
396 | $int 0x40; |
399 | $int 0x40; |
Line 397... | Line 400... | ||
397 | } |
400 | } |
398 | 401 | ||
399 | void CopyScreen(dword EBX, x, y, w, h) |
402 | :void CopyScreen(dword dst_offset, x, y, w, h) |
- | 403 | { |
|
400 | { |
404 | EAX = 36; |
401 | EAX = 36; |
405 | EBX = dst_offset; |
402 | ECX = w << 16 + h; |
406 | ECX = w << 16 + h; |
403 | EDX = x << 16 + y; |
407 | EDX = x << 16 + y; |
Line 409... | Line 413... | ||
409 | $mov eax, 35 |
413 | $mov eax, 35 |
410 | EBX= y*x_size+x; |
414 | EBX= y*x_size+x; |
411 | $int 0x40 |
415 | $int 0x40 |
412 | } |
416 | } |
Line 413... | Line -... | ||
413 | - | ||
414 | 417 | ||
415 | void _PutImage(dword x,y, w,h, EBX) |
418 | :void _PutImage(dword x,y, w,h, data_offset) |
416 | { |
419 | { |
- | 420 | EAX = 7; |
|
417 | EAX = 7; |
421 | EBX = data_offset; |
418 | ECX = w<<16+h; |
422 | ECX = w<<16+h; |
419 | EDX = x<<16+y; |
423 | EDX = x<<16+y; |
420 | $int 0x40 |
424 | $int 0x40 |
Line 608... | Line 612... | ||
608 | DOUBLE_CLICK_DELAY = GetMouseDoubleClickDelay(); |
612 | DOUBLE_CLICK_DELAY = GetMouseDoubleClickDelay(); |
609 | __generator = GetStartTime(); |
613 | __generator = GetStartTime(); |
Line 610... | Line 614... | ||
610 | 614 | ||
Line -... | Line 615... | ||
- | 615 | mem_init(); |
|
- | 616 | ||
611 | mem_init(); |
617 | if (program_path[0]!='/') I_Path++; |
612 | 618 | ||
613 | main(); |
619 | main(); |
614 | ExitProcess(); |
620 | ExitProcess(); |
615 | } |
621 | } |