Rev 550 | Rev 711 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
550 | serge | 1 | |
2 | extern "C" |
||
3 | { |
||
4 | #endif |
||
5 | |||
6 | |||
7 | |||
8 | #define FONT1 0x10000000 |
||
9 | |||
10 | |||
11 | #define BT_NOFRAME 0x20000000 |
||
12 | #define BT_HIDE 0x40000000 |
||
13 | #define BT_DEL 0x80000000 |
||
14 | |||
15 | |||
16 | #define EV_KEY 2 |
||
17 | #define EV_BUTTON 3 |
||
18 | |||
19 | |||
20 | #define REL_WINDOW 1 |
||
21 | |||
22 | |||
23 | #define FILE_EOF 6 |
||
24 | |||
25 | |||
704 | serge | 26 | |
550 | serge | 27 | |
28 | typedef unsigned short int WORD; |
||
29 | |||
30 | |||
31 | { DWORD pci_cmd; |
||
32 | DWORD irq; |
||
33 | DWORD glob_cntrl; |
||
34 | DWORD glob_sta; |
||
35 | DWORD codec_io_base; |
||
36 | DWORD ctrl_io_base; |
||
37 | DWORD codec_mem_base; |
||
38 | DWORD ctrl_mem_base; |
||
39 | DWORD codec_id; |
||
40 | } CTRL_INFO; |
||
41 | |||
42 | |||
43 | { DWORD cmd; |
||
44 | DWORD offset; |
||
45 | DWORD r1; |
||
46 | DWORD count; |
||
47 | DWORD buff; |
||
48 | char r2; |
||
49 | char *name; |
||
50 | } FILEIO; |
||
51 | |||
52 | |||
53 | { DWORD attr; |
||
54 | DWORD flags; |
||
55 | DWORD cr_time; |
||
56 | DWORD cr_date; |
||
57 | DWORD acc_time; |
||
58 | DWORD acc_date; |
||
59 | DWORD mod_time; |
||
60 | DWORD mod_date; |
||
61 | DWORD size; |
||
62 | DWORD size_high; |
||
63 | } FILEINFO; |
||
64 | |||
65 | |||
66 | |||
67 | |||
68 | |||
69 | |||
70 | |||
71 | |||
72 | void debug_out_str(char* str); |
||
73 | |||
74 | |||
75 | int _stdcall read_file (const char *name,char*buff,DWORD offset, DWORD count,DWORD *reads); |
||
76 | int _stdcall write_file(const char *name,char*buff,int offset,int count,int *writes); |
||
77 | |||
78 | |||
79 | int _stdcall get_key(int *key); |
||
80 | int _stdcall remap_key(int key); |
||
81 | |||
82 | |||
83 | |||
84 | |||
704 | serge | 85 | |
86 | |||
550 | serge | 87 | int wait_for_event_infinite(); |
88 | void BeginDraw(void); |
||
89 | void EndDraw(void); |
||
90 | |||
91 | |||
92 | void _stdcall DrawWindow(int x,int y, int sx, int sy,int workcolor,int style, |
||
93 | int captioncolor,int windowtype,int bordercolor); |
||
94 | void _stdcall debug_out(int ch); |
||
95 | void _stdcall make_button(int x, int y, int xsize, int ysize, int id, int color); |
||
96 | void _stdcall draw_bar(int x, int y, int xsize, int ysize, int color); |
||
97 | void _stdcall write_text(int x,int y,int color,char* text,int len); |
||
98 | |||
99 | |||
704 | serge | 100 | |
101 | |||
102 | |||
103 | |||
104 | "mov EAX, 68" \ |
||
105 | "mov EBX, 11" \ |
||
106 | "int 0x40" \ |
||
107 | value [EAX] \ |
||
108 | modify [ EBX ]; |
||
109 | |||
110 | |||
111 | |||
112 | |||
113 | |||
114 | |||
115 | "mov EAX, 68" \ |
||
116 | "mov EBX, 12" \ |
||
117 | "int 0x40" \ |
||
118 | parm [ ECX ] value [EAX] \ |
||
119 | modify [ EBX ]; |
||
120 | |||
121 | |||
122 | |||
123 | |||
124 | "mov EAX, 68" \ |
||
125 | "mov EBX, 13" \ |
||
126 | "int 0x40" \ |
||
127 | parm [ ECX ] value [EAX] \ |
||
128 | modify [ EBX ]; |
||
129 | |||
130 | |||
550 | serge | 131 | extern "C" |
132 | } |
||
133 | #endif |
||
134 |