Rev 6050 | Rev 6280 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6050 | Rev 6058 | ||
---|---|---|---|
Line 72... | Line 72... | ||
72 | #define SCAN_CODE_ENTER 028 |
72 | #define SCAN_CODE_ENTER 028 |
73 | #define SCAN_CODE_ESC 001 |
73 | #define SCAN_CODE_ESC 001 |
74 | #define SCAN_CODE_DEL 083 |
74 | #define SCAN_CODE_DEL 083 |
75 | #define SCAN_CODE_INS 082 |
75 | #define SCAN_CODE_INS 082 |
76 | #define SCAN_CODE_SPACE 057 |
76 | #define SCAN_CODE_SPACE 057 |
77 | 77 | ||
78 | #define SCAN_CODE_LEFT 075 |
78 | #define SCAN_CODE_LEFT 075 |
79 | #define SCAN_CODE_RIGHT 077 |
79 | #define SCAN_CODE_RIGHT 077 |
80 | #define SCAN_CODE_DOWN 080 |
80 | #define SCAN_CODE_DOWN 080 |
81 | #define SCAN_CODE_UP 072 |
81 | #define SCAN_CODE_UP 072 |
82 | #define SCAN_CODE_HOME 071 |
82 | #define SCAN_CODE_HOME 071 |
Line 402... | Line 402... | ||
402 | inline fastcall int GetClientTop() |
402 | inline fastcall int GetClientTop() |
403 | { |
403 | { |
404 | $mov eax, 48 |
404 | $mov eax, 48 |
405 | $mov ebx, 5 |
405 | $mov ebx, 5 |
406 | $int 0x40 |
406 | $int 0x40 |
407 | $mov eax, ebx |
407 | $mov eax, ebx |
408 | $shr eax, 16 |
408 | $shr eax, 16 |
409 | } |
409 | } |
Line 410... | Line 410... | ||
410 | 410 | ||
411 | inline fastcall int GetClientHeight() |
411 | inline fastcall int GetClientHeight() |
412 | { |
412 | { |
413 | $mov eax, 48 |
413 | $mov eax, 48 |
414 | $mov ebx, 5 |
414 | $mov ebx, 5 |
415 | $int 0x40 |
415 | $int 0x40 |
416 | $mov eax, ebx |
416 | $mov eax, ebx |
Line 417... | Line 417... | ||
417 | } |
417 | } |
418 | 418 | ||
Line 435... | Line 435... | ||
435 | $mov eax, 55 |
435 | $mov eax, 55 |
436 | $mov ebx, 55 |
436 | $mov ebx, 55 |
437 | $int 0x40 |
437 | $int 0x40 |
438 | } |
438 | } |
Line 439... | Line -... | ||
439 | - | ||
440 | inline fastcall void debugln( EDX) |
- | |
441 | { |
- | |
442 | $push eax |
- | |
443 | $push ebx |
- | |
444 | $push ecx |
- | |
445 | $mov eax, 63 |
- | |
446 | $mov ebx, 1 |
- | |
447 | NEXT_CHAR: |
- | |
448 | $mov ecx, DSDWORD[edx] |
- | |
449 | $or cl, cl |
- | |
450 | $jz DONE |
- | |
451 | $int 0x40 |
- | |
452 | $inc edx |
- | |
453 | $jmp NEXT_CHAR |
- | |
454 | DONE: |
- | |
455 | $mov cl, 13 |
- | |
456 | $int 0x40 |
- | |
457 | $mov cl, 10 |
- | |
458 | $int 0x40 |
- | |
459 | $pop ecx |
- | |
460 | $pop ebx |
- | |
461 | $pop eax |
- | |
462 | } |
- | |
463 | - | ||
464 | inline fastcall void debug( EDX) |
- | |
465 | { |
- | |
466 | $push eax |
- | |
467 | $push ebx |
- | |
468 | $push ecx |
- | |
469 | $mov eax, 63 |
- | |
470 | $mov ebx, 1 |
- | |
471 | NEXT_CHAR: |
- | |
472 | $mov ecx, DSDWORD[edx] |
- | |
473 | $or cl, cl |
- | |
474 | $jz DONE |
- | |
475 | $int 0x40 |
- | |
476 | $inc edx |
- | |
477 | $jmp NEXT_CHAR |
- | |
478 | DONE: |
- | |
479 | $pop ecx |
- | |
480 | $pop ebx |
- | |
481 | $pop eax |
- | |
482 | } |
- | |
483 | - | ||
484 | - | ||
485 | inline fastcall void debugch( ECX) |
- | |
486 | { |
- | |
487 | $push eax |
- | |
488 | $push ebx |
- | |
489 | $mov eax,63 |
- | |
490 | $mov ebx,1 |
- | |
491 | $int 0x40 |
- | |
492 | $pop ebx |
- | |
493 | $pop eax |
- | |
494 | } |
439 | |
Line 495... | Line 440... | ||
495 | //------------------------------------------------------------------------------ |
440 | //------------------------------------------------------------------------------ |
496 | 441 | ||
497 | void DefineAndDrawWindow(dword x, y, size_w, size_h, byte WindowType,dword WindowAreaColor, EDI, ESI) |
442 | void DefineAndDrawWindow(dword x, y, size_w, size_h, byte WindowType,dword WindowAreaColor, EDI, ESI) |
Line 604... | Line 549... | ||
604 | { |
549 | { |
605 | if (h<=0) || (h>60000) || (w<=0) || (w>60000) return; //bad boy :) |
550 | if (h<=0) || (h>60000) || (w<=0) || (w>60000) return; //bad boy :) |
606 | EAX = 13; |
551 | EAX = 13; |
607 | EBX = x<<16+w; |
552 | EBX = x<<16+w; |
608 | ECX = y<<16+h; |
553 | ECX = y<<16+h; |
609 | $int 0x40 |
554 | $int 0x40 |
610 | } |
555 | } |
Line 611... | Line 556... | ||
611 | 556 | ||
612 | void DefineButton(dword x,y,w,h,EDX,ESI) |
557 | void DefineButton(dword x,y,w,h,EDX,ESI) |
613 | { |
558 | { |
Line 810... | Line 755... | ||
810 | #endif |
755 | #endif |
Line 811... | Line 756... | ||
811 | 756 | ||
812 | #ifndef INCLUDE_MEM_H |
757 | #ifndef INCLUDE_MEM_H |
813 | #include "../lib/mem.h" |
758 | #include "../lib/mem.h" |
- | 759 | #endif |
|
- | 760 | ||
- | 761 | #ifndef INCLUDE_DEBUG_H |
|
- | 762 | #include "../lib/debug.h" |
|
814 | #endif16; |
763 | #endif16; |