]> 4ch.mooo.com Git - 16.git/commitdiff
branch is in the master swap branch code added to swap the files out ^^; vrstest...
authorsparky4 <sparky4@cock.li>
Sun, 21 Aug 2016 21:52:50 +0000 (16:52 -0500)
committersparky4 <sparky4@cock.li>
Sun, 21 Aug 2016 21:52:50 +0000 (16:52 -0500)
makefile
src/lib/typdefst.h
src/vrstest.c

index 520042e193f73af30fd000fb04020e818cb3f59a..3e7cfb2682c7acf6cc6af877acb10ca868507b73 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -184,8 +184,8 @@ inputest.exe: inputest.$(OBJ) $(16LIB)
 pcxtest.exe: pcxtest.$(OBJ) gfx.lib
        wcl $(FLAGS) pcxtest.$(OBJ) gfx.lib -fm=pcxtest.mah
 
-vrstest.exe: vrstest.$(OBJ) gfx.lib
-       wcl $(FLAGS) vrstest.$(OBJ) gfx.lib -fm=vrstest.mah
+vrstest.exe: vrstest.$(OBJ) gfx.lib $(16LIB)
+       wcl $(FLAGS) vrstest.$(OBJ) gfx.lib $(16LIB) -fm=vrstest.mah
 
 palettec.exe: palettec.$(OBJ) gfx.lib #$(16LIB)
        wcl $(FLAGS) palettec.$(OBJ) gfx.lib -fm=palettec.mah #$(16LIB)
index fb3943d1869f4374cc000eab5ff561bdc2771eed..18e5700959f62ebc2041ed089f0b84caea656789 100755 (executable)
@@ -185,7 +185,6 @@ typedef struct
        handle_t handle;        //handles for file logging\r
        kurokku_t kurokku;      //clock struct\r
        mminfo_t mm; mminfotype mmi;\r
-       void *bigbuffer;\r
 } global_game_variables_t;\r
 \r
 #endif /* _TYPEDEFSTRUCT_H_ */\r
index d27889d91a9d30081a14b2e65b0763ba21387b65..75469b0d6365eba088926400b92b9b2ae23ea3cd 100755 (executable)
@@ -32,6 +32,8 @@
 global_game_variables_t gvar;\r
 \r
 void main() {\r
+       __segment sega;\r
+       void __based(sega)* bigbuffer;\r
        int i;\r
        word start;\r
        int plane;\r
@@ -47,6 +49,11 @@ void main() {
        //      the CPU to carry out tasks. --J.C.\r
        cpu_probe();\r
 \r
+       gvar.mm.mmstarted=0;\r
+\r
+       MM_Startup(&gvar.mm, &gvar.mmi);\r
+       CA_Startup(&gvar);\r
+\r
        // DOSLIB: check for VGA\r
        if (!probe_vga()) {\r
                printf("VGA probe failed\n");\r
@@ -107,6 +114,9 @@ void main() {
        {\r
                //DrawPBuf(&gvar.video.page[0], 0, 0, p, 0);\r
        }\r
+       MM_FreePtr(&bigbuffer, &gvar.mm);\r
+       CA_Shutdown(&gvar);\r
+       MM_Shutdown(&gvar.mm);\r
        VGAmodeX(0, 1, &gvar);\r
        /*printf("\nmain=%Fp\n\n", &i);\r
        printf("bmp.data=%Fp\n", bmp.data);\r