Rev 9693 | Rev 9700 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9693 | Rev 9699 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | #pragma option OST |
6 | #pragma option OST |
7 | #pragma option ON |
7 | #pragma option ON |
8 | #pragma option cri- |
8 | #pragma option cri- |
9 | #pragma option -CPA |
9 | #pragma option -CPA |
10 | #initallvar 0 |
10 | #initallvar 0 |
- | 11 | ||
- | 12 | #ifndef __COFF__ |
|
11 | #jumptomain FALSE |
13 | #jumptomain FALSE |
Line 12... | Line 14... | ||
12 | 14 | ||
Line 13... | Line 15... | ||
13 | #startaddress 0 |
15 | #startaddress 0 |
Line 26... | Line 28... | ||
26 | dword x86esp_reg = MEMSIZE; |
28 | dword x86esp_reg = MEMSIZE; |
27 | dword I_Param = #param; |
29 | dword I_Param = #param; |
28 | dword I_Path = #program_path; |
30 | dword I_Path = #program_path; |
29 | char param[4096]; |
31 | char param[4096]; |
30 | char program_path[4096]; |
32 | char program_path[4096]; |
- | 33 | #else |
|
- | 34 | extern dword __argv; |
|
- | 35 | extern dword __path; |
|
- | 36 | ||
- | 37 | dword I_Param = #__argv; |
|
- | 38 | dword I_Path = #__path; |
|
- | 39 | ||
- | 40 | #define param __argv |
|
- | 41 | #define program_path __path |
|
- | 42 | #endif |
|
Line 31... | Line 43... | ||
31 | 43 | ||
Line 32... | Line 44... | ||
32 | #define bool int |
44 | #define bool int |
33 | 45 | ||
Line 651... | Line 663... | ||
651 | :byte skin_h; |
663 | :byte skin_h; |
Line 652... | Line 664... | ||
652 | 664 | ||
Line 653... | Line 665... | ||
653 | dword __generator; // random number generator init |
665 | dword __generator; // random number generator init |
- | 666 | ||
- | 667 | //The initialization of the initial data before running |
|
- | 668 | #ifdef __COFF__ |
|
654 | 669 | void start() |
|
- | 670 | #else |
|
655 | //The initialization of the initial data before running |
671 | :void ______INIT______() |
656 | :void ______INIT______() |
672 | #endif |
657 | { |
673 | { |
658 | skin_h = @GetSkinHeight(); |
674 | skin_h = @GetSkinHeight(); |
659 | screen.w = @GetScreenWidth()+1; |
675 | screen.w = @GetScreenWidth()+1; |
- | 676 | screen.h = @GetScreenHeight()+1; |
|
660 | screen.h = @GetScreenHeight()+1; |
677 | __generator = @GetStartTime(); |
- | 678 | #ifndef __COFF__ |
|
661 | __generator = @GetStartTime(); |
679 | mem_init(); |
662 | mem_init(); |
680 | #endif |
663 | main(); |
681 | main(); |
664 | } |
682 | } |