Rev 550 | Rev 711 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 550 | Rev 704 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | 21 | ||
Line 22... | Line 22... | ||
22 | #define FILE_NOT_FOUND 5 |
22 | #define FILE_NOT_FOUND 5 |
23 | #define FILE_EOF 6 |
23 | #define FILE_EOF 6 |
Line -... | Line 24... | ||
- | 24 | ||
Line 24... | Line 25... | ||
24 | 25 | #if 0 |
|
25 | 26 | ||
Line 26... | Line 27... | ||
26 | typedef unsigned int DWORD; |
27 | typedef unsigned int DWORD; |
Line 60... | Line 61... | ||
60 | DWORD size; |
61 | DWORD size; |
61 | DWORD size_high; |
62 | DWORD size_high; |
62 | } FILEINFO; |
63 | } FILEINFO; |
63 | 64 | ||
Line 64... | Line -... | ||
64 | void _stdcall InitHeap(int heap_size); |
- | |
65 | void* _stdcall UserAlloc(int size); |
- | |
66 | int _stdcall UserFree(void* p); |
- | |
67 | - | ||
68 | void _stdcall GetNotify(void *event); |
65 | void _stdcall GetNotify(void *event); |
Line 69... | Line 66... | ||
69 | 66 | ||
Line 70... | Line 67... | ||
70 | void _stdcall CreateThread(void *fn, char *p_stack); |
67 | void _stdcall CreateThread(void *fn, char *p_stack); |
Line 83... | Line 80... | ||
83 | int _stdcall remap_key(int key); |
80 | int _stdcall remap_key(int key); |
84 | 81 | ||
Line 85... | Line 82... | ||
85 | int _cdecl get_button_id(); |
82 | int _cdecl get_button_id(); |
Line 86... | Line 83... | ||
86 | 83 | ||
- | 84 | //void delay(int val); |
|
87 | void delay(int val); |
85 | |
88 | int wait_for_event(int time); |
86 | int wait_for_event(int time); |
89 | int wait_for_event_infinite(); |
87 | int wait_for_event_infinite(); |
90 | void BeginDraw(void); |
88 | void BeginDraw(void); |
Line 97... | Line 95... | ||
97 | void _stdcall make_button(int x, int y, int xsize, int ysize, int id, int color); |
95 | void _stdcall make_button(int x, int y, int xsize, int ysize, int id, int color); |
98 | void _stdcall draw_bar(int x, int y, int xsize, int ysize, int color); |
96 | void _stdcall draw_bar(int x, int y, int xsize, int ysize, int color); |
99 | void _stdcall write_text(int x,int y,int color,char* text,int len); |
97 | void _stdcall write_text(int x,int y,int color,char* text,int len); |
100 | 98 | ||
Line -... | Line 99... | ||
- | 99 | #endif |
|
- | 100 | ||
- | 101 | unsigned init_heap(void); |
|
- | 102 | ||
- | 103 | #pragma aux init_heap = \ |
|
- | 104 | "mov EAX, 68" \ |
|
- | 105 | "mov EBX, 11" \ |
|
- | 106 | "int 0x40" \ |
|
- | 107 | value [EAX] \ |
|
- | 108 | modify [ EBX ]; |
|
- | 109 | ||
- | 110 | void *user_alloc(unsigned size); |
|
- | 111 | ||
- | 112 | void *user_alloc(unsigned size); |
|
- | 113 | ||
- | 114 | #pragma aux user_alloc = \ |
|
- | 115 | "mov EAX, 68" \ |
|
- | 116 | "mov EBX, 12" \ |
|
- | 117 | "int 0x40" \ |
|
- | 118 | parm [ ECX ] value [EAX] \ |
|
- | 119 | modify [ EBX ]; |
|
- | 120 | ||
- | 121 | unsigned user_free(void *); |
|
- | 122 | ||
- | 123 | #pragma aux user_free = \ |
|
- | 124 | "mov EAX, 68" \ |
|
- | 125 | "mov EBX, 13" \ |
|
- | 126 | "int 0x40" \ |
|
- | 127 | parm [ ECX ] value [EAX] \ |
|
- | 128 | modify [ EBX ]; |
|
- | 129 | ||
101 | #ifdef __cplusplus |
130 | #ifdef __cplusplus |
102 | extern "C" |
131 | extern "C" |
103 | } |
132 | } |
104 | #endif |
133 | #endif |