]> 4ch.mooo.com Git - 16.git/commitdiff
i do not know 100% wat i have done but i plan on getting the borland c stuff and...
authorsparky4 <sparky4@cock.li>
Sat, 19 Aug 2017 00:05:06 +0000 (19:05 -0500)
committersparky4 <sparky4@cock.li>
Sat, 19 Aug 2017 00:05:06 +0000 (19:05 -0500)
bcexmm.dsk
bcexmm.exe [new file with mode: 0755]
bcexmm.prj
src/exmmtest.c
src/imfplay.c
src/lib/16_mm.c
src/lib/16_vl_1.c

index 0ef010ca2205afdb2b05cf1c63229841986a461e..4848bb948adf7eca991e83753459b95d5d504089 100755 (executable)
Binary files a/bcexmm.dsk and b/bcexmm.dsk differ
diff --git a/bcexmm.exe b/bcexmm.exe
new file mode 100755 (executable)
index 0000000..c103df5
Binary files /dev/null and b/bcexmm.exe differ
index e3ecc2f24e664826859d3b7e896472c110db177d..13dcb52b81cf73bb44e27376d15d8a869ca6d5dc 100755 (executable)
Binary files a/bcexmm.prj and b/bcexmm.prj differ
index 276c1721ee07b4ad9f956cbdf68567256eed2335..83aa4e2b63d41df54ed21f62197a15bf1d09ff5b 100755 (executable)
@@ -52,11 +52,12 @@ void        TL_VidInit(global_game_variables_t *gvar)
        gvar->video.old_mode = 3;\r
 }\r
 \r
+void VL_print(const byte *str, nibble pagenum, global_game_variables_t *gvar){ printf("%s\n", str); }\r
+\r
 #ifdef __WATCOMC__\r
 void VL_ShowPage(page_t *page, boolean vsync, boolean sr){}\r
 void modexClearRegion(page_t *page, int x, int y, int w, int h, byte color){}\r
 void modexprint(page_t *page, sword x, sword y, word t, boolean tlsw, word color, word bgcolor, boolean vidsw, const byte *str){ printf("%s\n", str); }\r
-void VL_print(const byte *str, nibble pagenum, global_game_variables_t *gvar){ printf("%s\n", str); }\r
 void modexpdump(nibble pagenum, global_game_variables_t *gvar){}\r
 #endif\r
 #endif\r
index 697b6d3611e7f3d7940223948a5f91b58b0756a4..1895d77d70fdb523f5d11511d5ed270891b1092d 100755 (executable)
@@ -19,7 +19,7 @@
 #include "src/lib/16_mm.h"
 #include "src/lib/16_hc.h"
 #include "src/lib/16_dbg.h"
-#include "src/lib/16_sd.h"
+//#include "src/lib/16_sd.h"
 
 // #include <stdio.h>
 // #include <conio.h> /* this is where Open Watcom hides the outp() etc. functions */
index c207e0243ead8c7048dd47a5b6d9479e1b29fd99..90dcdae0c70fbe73d3e988b84a778c1d45025b08 100755 (executable)
@@ -1263,10 +1263,9 @@ void MM_SortMem (global_game_variables_t *gvar)
 \r
 \r
        SD_StopSound();*/\r
-#ifdef __WATCOMC__\r
+\r
        oldborder = gvar->video.bordercolor;\r
        gvar->video.bordercolor = VL_modexPalOverscan(gvar->video.palette, 4);\r
-#endif\r
 \r
        if (beforesort)\r
                beforesort();\r
@@ -1344,10 +1343,10 @@ void MM_SortMem (global_game_variables_t *gvar)
 extern char global_temp_status_text[512];\r
 extern char global_temp_status_text2[512];\r
 #endif\r
-#ifdef __WATCOMC__\r
+//#ifdef __WATCOMC__\r
 //#define MMSMPANVID\r
 #define MMSMSCANINFO\r
-#endif\r
+//#endif\r
 \r
 /*\r
 =====================\r
@@ -1361,7 +1360,7 @@ extern char global_temp_status_text2[512];
 void MM_ShowMemory (global_game_variables_t *gvar)\r
 {\r
        mmblocktype far *scan;\r
-       unsigned color,temp,x,y         ,q,w,width,sw;\r
+       unsigned color,temp,x,y         ,q,w/*,width*/,sw;\r
        sdword  end,owner;\r
        byte            scratch[160],scratch0[4096],str[16];\r
 #ifdef MMSMSCANINFO\r
@@ -1386,7 +1385,8 @@ reset:
 \r
        end = -1; w = 0; q = 0;\r
 \r
-       width = gvar->video.page[0].width; sw = gvar->video.page[0].sw;\r
+       //width = gvar->video.page[0].width;\r
+       sw = gvar->video.page[0].sw;\r
 \r
        CA_OpenDebug (gvar);\r
        while (scan)\r
@@ -1500,9 +1500,8 @@ reset:
 //0000fprintf(stdout, "[%u]\n", q);\r
 \r
                scan = scan->next;\r
-//#ifdef MMSMSCANINFO\r
                q++;\r
-//#endif\r
+\r
 //0000if(gvar->video.VL_Started && color!=6) IN_Ack(gvar);\r
        }\r
 \r
@@ -1689,9 +1688,11 @@ reset:
                        case sc_Space:\r
                                oldq = q;\r
                                restarted = true;\r
-                               modexClearRegion(&gvar->video.page[0], gvar->video.page[0].dx, gvar->video.page[0].dy, gvar->video.page[0].sw, gvar->video.page[0].sh, 8);\r
+#ifdef __WATCOMC__\r
+                               if(gvar->video.VL_Started) modexClearRegion(&gvar->video.page[0], gvar->video.page[0].dx, gvar->video.page[0].dy, gvar->video.page[0].sw, gvar->video.page[0].sh, 8);\r
+#endif\r
                                goto reset;\r
-                       break;\r
+\r
                        case sc_Escape:\r
                                done = true;\r
                        break;\r
index b5c826da10861e1d9680c86f89491fd71ba8201b..a6cc8e26159a543f19efb67794cc6f29e233c406 100755 (executable)
@@ -26,8 +26,8 @@
 #include "src/lib/16_vl.h"\r
 \r
 static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
-#define VGASTRIDEVARIABLE      vga_state.vga_stride\r
-//#define VGASTRIDEVARIABLE    gvar->video.page[0].stridew\r
+//#define VGASTRIDEVARIABLE    vga_state.vga_stride\r
+#define VGASTRIDEVARIABLE      gvar->video.page[0].stridew\r
 \r
 //===========================================================================\r
 \r