From: sparky4 Date: Thu, 19 Nov 2015 21:08:24 +0000 (-0600) Subject: IT WORKS!!!! well to a degree! wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=91a0dd76c3234f0253a83e6b160e6545a2bcae9c;hp=ba6c62a43f8f1b0447ea2520ccc75e84888d1a22;p=16.git IT WORKS!!!! well to a degree! wwww --- diff --git a/src/lib/modex/demos/c/c_utils.h b/src/lib/modex/demos/c/c_utils.h index ed0e188f..9be6ba2d 100755 --- a/src/lib/modex/demos/c/c_utils.h +++ b/src/lib/modex/demos/c/c_utils.h @@ -114,4 +114,4 @@ void far pascal init_random (void); int far pascal int_sqr (int X, int Round); int far pascal timer_count (void); -#endif \ No newline at end of file +#endif diff --git a/src/lib/modex/demos/c/makefile b/src/lib/modex/demos/c/makefile new file mode 100755 index 00000000..ff3463af --- /dev/null +++ b/src/lib/modex/demos/c/makefile @@ -0,0 +1,28 @@ +!ifdef __LINUX__ +REMOVECOMMAND=rm -f +COPYCOMMAND=cp -f +DIRSEP=/ +OBJ=o +!else +REMOVECOMMAND=del +COPYCOMMAND=copy /y +DIRSEP=\ +OBJ=obj +!endif + +all: x-demo.exe + +x-demo.exe: x-demo.$(OBJ) modex.$(OBJ) c_utils.$(OBJ) + wcl -0 -mh x-demo.$(OBJ) modex.$(OBJ) c_utils.$(OBJ) +x-demo.$(OBJ): x-demo.c + wcl -c -0 -mh x-demo.c + +c_utils.$(OBJ): c_utils.asm + wcl -0 -c -mh c_utils.asm +modex.$(OBJ): modex.asm + wcl -c -0 -mh modex.asm + +clean: .symbolic + @$(REMOVECOMMAND) x-demo.exe + @$(REMOVECOMMAND) *.$(OBJ) + @$(REMOVECOMMAND) *.err diff --git a/src/lib/modex/demos/c/modex.h b/src/lib/modex/demos/c/modex.h index 7de25a63..1381abb6 100755 --- a/src/lib/modex/demos/c/modex.h +++ b/src/lib/modex/demos/c/modex.h @@ -1,9 +1,9 @@ - + #ifndef __MODEX_H #define __MODEX_H - + /* ===== SCREEN RESOLUTIONS ===== */ - + #define Mode_320x200 0 #define Mode_320x400 1 #define Mode_360x200 2 @@ -12,14 +12,14 @@ #define Mode_320x480 5 #define Mode_360x240 6 #define Mode_360x480 7 - + /* ===== MODE X SETUP ROUTINES ===== */ - + int far pascal set_vga_modex (int Mode, int MaxXpos, int MaxYpos, int Pages); int far pascal set_modex (int Mode); - + /* ===== BASIC GRAPHICS PRIMITIVES ===== */ - + void far pascal clear_vga_screen (int Color); void far pascal set_point (int Xpos, int Ypos, int Color); int far pascal read_point (int Xpos, int Ypos); @@ -27,18 +27,18 @@ void far pascal fill_block (int Xpos1, int Ypos1, int Xpos2, int Ypos2, int Color); void far pascal draw_line (int Xpos1, int Ypos1, int Xpos2, int Ypos2, int Color); - + /* ===== DAC COLOR REGISTER ROUTINES ===== */ - + void far pascal set_dac_register (int RegNo, int Red, int Green, int Blue); void far pascal get_dac_register (int RegNo, int* Red, int* Green, int* Blue); void far pascal load_dac_registers (char far *PalData, int StartReg, int EndReg, int VSync); void far pascal readd_dac_registers (char far *PalData, int StartReg, int EndReg); - + /* ===== PAGE FLIPPING AND SCROLLING ROUTINES ===== */ - + void far pascal set_active_page (int PageNo); int far pascal get_active_page (void); void far pascal set_display_page (int PageNo); @@ -47,9 +47,9 @@ void far pascal set_window (int DisplayPage, int XOffset, int YOffset); int far pascal get_x_offset (void); int far pascal get_y_offset (void); void far pascal sync_display (void); - + /* ===== TEXT DISPLAY ROUTINES ===== */ - + void far pascal gprintc (int CharNum, int Xpos, int Ypos, int ColorF, int ColorB); void far pascal tgprintc (int CharNum, int Xpos, int Ypos, int ColorF); @@ -58,19 +58,19 @@ void far pascal print_str (char far *Text, int MaxLen, int Xpos, int Ypos, void far pascal tprint_str (char far *Text, int MaxLen, int Xpos, int Ypos, int ColorF); void far pascal set_display_font (char far *FontData, int FontNumber); - + /* ===== BITMAP (SPRITE) DISPLAY ROUTINES ===== */ - + void far pascal draw_bitmap (char far *Image, int Xpos, int Ypos, int Width, int Height); void far pascal tdraw_bitmap (char far *Image, int Xpos, int Ypos, int Width, int Height); - + /* ==== VIDEO MEMORY to VIDEO MEMORY COPY ROUTINES ===== */ - + void far pascal copy_page (int SourcePage, int DestPage); void far pascal copy_bitmap (int SourcePage, int X1, int Y1, int X2, int Y2, int DestPage, int DestX1, int DestY1); - - + + #endif diff --git a/src/lib/modex/demos/c/x-demo.exe b/src/lib/modex/demos/c/x-demo.exe new file mode 100755 index 00000000..efe62622 Binary files /dev/null and b/src/lib/modex/demos/c/x-demo.exe differ