wwww
Revision | 40fd3f869bd0d1e36b1eb5679da11c914ebf00f3 (tree) |
---|---|
Time | 2016-08-22 06:52:50 |
Author | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
branch is in the master swap branch code added to swap the files out ; vrstest.c is added for actual testing~
@@ -184,8 +184,8 @@ inputest.exe: inputest.$(OBJ) $(16LIB) | ||
184 | 184 | pcxtest.exe: pcxtest.$(OBJ) gfx.lib |
185 | 185 | wcl $(FLAGS) pcxtest.$(OBJ) gfx.lib -fm=pcxtest.mah |
186 | 186 | |
187 | -vrstest.exe: vrstest.$(OBJ) gfx.lib | |
188 | - wcl $(FLAGS) vrstest.$(OBJ) gfx.lib -fm=vrstest.mah | |
187 | +vrstest.exe: vrstest.$(OBJ) gfx.lib $(16LIB) | |
188 | + wcl $(FLAGS) vrstest.$(OBJ) gfx.lib $(16LIB) -fm=vrstest.mah | |
189 | 189 | |
190 | 190 | palettec.exe: palettec.$(OBJ) gfx.lib #$(16LIB) |
191 | 191 | wcl $(FLAGS) palettec.$(OBJ) gfx.lib -fm=palettec.mah #$(16LIB) |
@@ -185,7 +185,6 @@ typedef struct | ||
185 | 185 | handle_t handle; //handles for file logging |
186 | 186 | kurokku_t kurokku; //clock struct |
187 | 187 | mminfo_t mm; mminfotype mmi; |
188 | - void *bigbuffer; | |
189 | 188 | } global_game_variables_t; |
190 | 189 | |
191 | 190 | #endif /* _TYPEDEFSTRUCT_H_ */ |
@@ -32,6 +32,8 @@ | ||
32 | 32 | global_game_variables_t gvar; |
33 | 33 | |
34 | 34 | void main() { |
35 | + __segment sega; | |
36 | + void __based(sega)* bigbuffer; | |
35 | 37 | int i; |
36 | 38 | word start; |
37 | 39 | int plane; |
@@ -47,6 +49,11 @@ void main() { | ||
47 | 49 | // the CPU to carry out tasks. --J.C. |
48 | 50 | cpu_probe(); |
49 | 51 | |
52 | + gvar.mm.mmstarted=0; | |
53 | + | |
54 | + MM_Startup(&gvar.mm, &gvar.mmi); | |
55 | + CA_Startup(&gvar); | |
56 | + | |
50 | 57 | // DOSLIB: check for VGA |
51 | 58 | if (!probe_vga()) { |
52 | 59 | printf("VGA probe failed\n"); |
@@ -107,6 +114,9 @@ void main() { | ||
107 | 114 | { |
108 | 115 | //DrawPBuf(&gvar.video.page[0], 0, 0, p, 0); |
109 | 116 | } |
117 | + MM_FreePtr(&bigbuffer, &gvar.mm); | |
118 | + CA_Shutdown(&gvar); | |
119 | + MM_Shutdown(&gvar.mm); | |
110 | 120 | VGAmodeX(0, 1, &gvar); |
111 | 121 | /*printf("\nmain=%Fp\n\n", &i); |
112 | 122 | printf("bmp.data=%Fp\n", bmp.data); |