• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

wwww


Commit MetaInfo

Revision40fd3f869bd0d1e36b1eb5679da11c914ebf00f3 (tree)
Time2016-08-22 06:52:50
Authorsparky4 <sparky4@cock...>
Commitersparky4

Log Message

branch is in the master swap branch code added to swap the files out ; vrstest.c is added for actual testing~

Change Summary

Incremental Difference

--- a/makefile
+++ b/makefile
@@ -184,8 +184,8 @@ inputest.exe: inputest.$(OBJ) $(16LIB)
184184 pcxtest.exe: pcxtest.$(OBJ) gfx.lib
185185 wcl $(FLAGS) pcxtest.$(OBJ) gfx.lib -fm=pcxtest.mah
186186
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
189189
190190 palettec.exe: palettec.$(OBJ) gfx.lib #$(16LIB)
191191 wcl $(FLAGS) palettec.$(OBJ) gfx.lib -fm=palettec.mah #$(16LIB)
--- a/src/lib/typdefst.h
+++ b/src/lib/typdefst.h
@@ -185,7 +185,6 @@ typedef struct
185185 handle_t handle; //handles for file logging
186186 kurokku_t kurokku; //clock struct
187187 mminfo_t mm; mminfotype mmi;
188- void *bigbuffer;
189188 } global_game_variables_t;
190189
191190 #endif /* _TYPEDEFSTRUCT_H_ */
--- a/src/vrstest.c
+++ b/src/vrstest.c
@@ -32,6 +32,8 @@
3232 global_game_variables_t gvar;
3333
3434 void main() {
35+ __segment sega;
36+ void __based(sega)* bigbuffer;
3537 int i;
3638 word start;
3739 int plane;
@@ -47,6 +49,11 @@ void main() {
4749 // the CPU to carry out tasks. --J.C.
4850 cpu_probe();
4951
52+ gvar.mm.mmstarted=0;
53+
54+ MM_Startup(&gvar.mm, &gvar.mmi);
55+ CA_Startup(&gvar);
56+
5057 // DOSLIB: check for VGA
5158 if (!probe_vga()) {
5259 printf("VGA probe failed\n");
@@ -107,6 +114,9 @@ void main() {
107114 {
108115 //DrawPBuf(&gvar.video.page[0], 0, 0, p, 0);
109116 }
117+ MM_FreePtr(&bigbuffer, &gvar.mm);
118+ CA_Shutdown(&gvar);
119+ MM_Shutdown(&gvar.mm);
110120 VGAmodeX(0, 1, &gvar);
111121 /*printf("\nmain=%Fp\n\n", &i);
112122 printf("bmp.data=%Fp\n", bmp.data);