]> 4ch.mooo.com Git - 16.git/commitdiff
modified: 16/DOS_GFX.OBJ
authorsparky4 <sparky4@4ch.maidlab.jp>
Mon, 26 May 2014 20:46:33 +0000 (15:46 -0500)
committersparky4 <sparky4@4ch.maidlab.jp>
Mon, 26 May 2014 20:46:33 +0000 (15:46 -0500)
modified:   16/Project 16.bfproject
modified:   16/dos_gfx.cpp
modified:   16/lib/x/MAKEFILE
deleted:    16/lib/x/MODEX.BAK
modified:   16/lib/x/MODEX.DEF
modified:   16/lib/x/MODEX.H
modified:   16/lib/x/MODEX.LIB
deleted:    16/lib/x/MODEX.OBJ
modified:   16/lib/x/MXBB.ASM
modified:   16/lib/x/MXBB.OBJ
modified:   16/lib/x/MXCC.ASM
modified:   16/lib/x/MXCC.OBJ
modified:   16/lib/x/MXCG.ASM
modified:   16/lib/x/MXCG.OBJ
modified:   16/lib/x/MXCL.ASM
modified:   16/lib/x/MXCL.OBJ
modified:   16/lib/x/MXCR.ASM
modified:   16/lib/x/MXCR.OBJ
modified:   16/lib/x/MXEL.ASM
deleted:    16/lib/x/MXEL.OBJ
modified:   16/lib/x/MXFB.ASM
modified:   16/lib/x/MXFB.OBJ
modified:   16/lib/x/MXFP.ASM
modified:   16/lib/x/MXFP.OBJ
modified:   16/lib/x/MXGC.ASM
modified:   16/lib/x/MXGC.OBJ
modified:   16/lib/x/MXGI.ASM
modified:   16/lib/x/MXGI.OBJ
modified:   16/lib/x/MXGM.ASM
modified:   16/lib/x/MXGM.OBJ
modified:   16/lib/x/MXGP.ASM
modified:   16/lib/x/MXGP.OBJ
modified:   16/lib/x/MXGV.ASM
modified:   16/lib/x/MXGV.OBJ
modified:   16/lib/x/MXHL.ASM
modified:   16/lib/x/MXHL.OBJ
modified:   16/lib/x/MXIT.ASM
modified:   16/lib/x/MXIT.OBJ
modified:   16/lib/x/MXLL.ASM
modified:   16/lib/x/MXLL.OBJ
modified:   16/lib/x/MXLN.ASM
modified:   16/lib/x/MXLN.OBJ
modified:   16/lib/x/MXOT.ASM
modified:   16/lib/x/MXOT.OBJ
modified:   16/lib/x/MXPB.ASM
modified:   16/lib/x/MXPB.OBJ
modified:   16/lib/x/MXPF.ASM
modified:   16/lib/x/MXPF.OBJ
modified:   16/lib/x/MXPG.ASM
modified:   16/lib/x/MXPG.OBJ
modified:   16/lib/x/MXPI.ASM
modified:   16/lib/x/MXPI.OBJ
modified:   16/lib/x/MXPN.ASM
modified:   16/lib/x/MXPN.OBJ
modified:   16/lib/x/MXPP.ASM
modified:   16/lib/x/MXPP.OBJ
deleted:    16/lib/x/MXPT.ASM
deleted:    16/lib/x/MXPT.OBJ
modified:   16/lib/x/MXRA.ASM
modified:   16/lib/x/MXRA.OBJ
modified:   16/lib/x/MXRP.ASM
modified:   16/lib/x/MXRP.OBJ
modified:   16/lib/x/MXSA.ASM
modified:   16/lib/x/MXSA.OBJ
modified:   16/lib/x/MXSC.ASM
modified:   16/lib/x/MXSC.OBJ
modified:   16/lib/x/MXSI.ASM
modified:   16/lib/x/MXSI.OBJ
modified:   16/lib/x/MXSL.ASM
modified:   16/lib/x/MXSL.OBJ
modified:   16/lib/x/MXSM.ASM
modified:   16/lib/x/MXSM.OBJ
modified:   16/lib/x/MXSP.ASM
modified:   16/lib/x/MXSP.OBJ
modified:   16/lib/x/MXSS.ASM
modified:   16/lib/x/MXSS.OBJ
modified:   16/lib/x/MXTL.ASM
modified:   16/lib/x/MXTL.OBJ
modified:   16/lib/x/MXVS.ASM
modified:   16/lib/x/MXVS.OBJ
deleted:    16/lib/x/MXVS~1.OBJ
modified:   16/lib/x/MXWD.ASM
modified:   16/lib/x/MXWD.OBJ
modified:   16/lib/x/MXWM.ASM
modified:   16/lib/x/MXWM.OBJ
modified:   16/lib/x/MXWP.ASM
modified:   16/lib/x/MXWP.OBJ
modified:   16/lib/x/MXWR.ASM
modified:   16/lib/x/MXWR.OBJ
deleted:    16/lib/x/compile.bat
deleted:    16/lib/x/modex.bak
deleted:    16/lib/x/modex.lb1
deleted:    16/lib/x/modex.lib
deleted:    16/lib/x/modex.mk
deleted:    16/lib/x/modex.mk1
deleted:    16/lib/x/modex.tgt
deleted:    16/lib/x/modex.wpj
modified:   16/x.bat
16/DOS_GFX.EXE

99 files changed:
16/DOS_GFX.OBJ
16/Project 16.bfproject
16/dos_gfx.cpp
16/lib/x/MAKEFILE
16/lib/x/MODEX.BAK [deleted file]
16/lib/x/MODEX.DEF
16/lib/x/MODEX.H
16/lib/x/MODEX.LIB
16/lib/x/MODEX.OBJ [deleted file]
16/lib/x/MXBB.ASM
16/lib/x/MXBB.OBJ
16/lib/x/MXCC.ASM
16/lib/x/MXCC.OBJ
16/lib/x/MXCG.ASM
16/lib/x/MXCG.OBJ
16/lib/x/MXCL.ASM
16/lib/x/MXCL.OBJ
16/lib/x/MXCR.ASM
16/lib/x/MXCR.OBJ
16/lib/x/MXEL.ASM
16/lib/x/MXEL.OBJ [deleted file]
16/lib/x/MXFB.ASM
16/lib/x/MXFB.OBJ
16/lib/x/MXFP.ASM
16/lib/x/MXFP.OBJ
16/lib/x/MXGC.ASM
16/lib/x/MXGC.OBJ
16/lib/x/MXGI.ASM
16/lib/x/MXGI.OBJ
16/lib/x/MXGM.ASM
16/lib/x/MXGM.OBJ
16/lib/x/MXGP.ASM
16/lib/x/MXGP.OBJ
16/lib/x/MXGV.ASM
16/lib/x/MXGV.OBJ
16/lib/x/MXHL.ASM
16/lib/x/MXHL.OBJ
16/lib/x/MXIT.ASM
16/lib/x/MXIT.OBJ
16/lib/x/MXLL.ASM
16/lib/x/MXLL.OBJ
16/lib/x/MXLN.ASM
16/lib/x/MXLN.OBJ
16/lib/x/MXOT.ASM
16/lib/x/MXOT.OBJ
16/lib/x/MXPB.ASM
16/lib/x/MXPB.OBJ
16/lib/x/MXPF.ASM
16/lib/x/MXPF.OBJ
16/lib/x/MXPG.ASM
16/lib/x/MXPG.OBJ
16/lib/x/MXPI.ASM
16/lib/x/MXPI.OBJ
16/lib/x/MXPN.ASM
16/lib/x/MXPN.OBJ
16/lib/x/MXPP.ASM
16/lib/x/MXPP.OBJ
16/lib/x/MXPT.ASM [deleted file]
16/lib/x/MXPT.OBJ [deleted file]
16/lib/x/MXRA.ASM
16/lib/x/MXRA.OBJ
16/lib/x/MXRP.ASM
16/lib/x/MXRP.OBJ
16/lib/x/MXSA.ASM
16/lib/x/MXSA.OBJ
16/lib/x/MXSC.ASM
16/lib/x/MXSC.OBJ
16/lib/x/MXSI.ASM
16/lib/x/MXSI.OBJ
16/lib/x/MXSL.ASM
16/lib/x/MXSL.OBJ
16/lib/x/MXSM.ASM
16/lib/x/MXSM.OBJ
16/lib/x/MXSP.ASM
16/lib/x/MXSP.OBJ
16/lib/x/MXSS.ASM
16/lib/x/MXSS.OBJ
16/lib/x/MXTL.ASM
16/lib/x/MXTL.OBJ
16/lib/x/MXVS.ASM
16/lib/x/MXVS.OBJ
16/lib/x/MXVS~1.OBJ [deleted file]
16/lib/x/MXWD.ASM
16/lib/x/MXWD.OBJ
16/lib/x/MXWM.ASM
16/lib/x/MXWM.OBJ
16/lib/x/MXWP.ASM
16/lib/x/MXWP.OBJ
16/lib/x/MXWR.ASM
16/lib/x/MXWR.OBJ
16/lib/x/compile.bat [deleted file]
16/lib/x/modex.bak [deleted file]
16/lib/x/modex.lb1 [deleted file]
16/lib/x/modex.lib [deleted file]
16/lib/x/modex.mk [deleted file]
16/lib/x/modex.mk1 [deleted file]
16/lib/x/modex.tgt [deleted file]
16/lib/x/modex.wpj [deleted file]
16/x.bat

index 23a5a0350ec935c6b40a3b750e7d4b143d8ac0c0..33fc4b75751456ae97bf1376c655ea485ba3599e 100644 (file)
Binary files a/16/DOS_GFX.OBJ and b/16/DOS_GFX.OBJ differ
index 90a63e858c89e18778b27da65013a24595137df4..8d363c9a1787fc1da6a18471005449e06581092d 100644 (file)
@@ -1,6 +1,6 @@
 c2e.convert_special: 0
 e2c.convert_num: 0
-openfiles: /dos/z/16/16/dos_gfx.cpp:8871:8213:0:
+openfiles: /dos/z/16/16/dos_gfx.cpp:24360:23947:1:
 openfiles: /dos/z/16/16/dos_gfx.h:607:0:0:
 openfiles: /dos/z/16/16/dos_kb.c:892:395:0:
 openfiles: /dos/z/16/16/dos_kb.h:60:0:0:
@@ -9,12 +9,13 @@ openfiles: /dos/z/16/16/lib/lib_com.h:2553:1575:0:
 openfiles: /dos/z/16/16/scroll.txt:5307:5080:0:
 openfiles: /dos/z/16/16/project16.txt:1675:950:0:
 openfiles: /dos/z/16/16/16.txt:0:0:0:
-openfiles: /dos/z/16/16/lib/x/MODEX.DEF:4500:3857:0:
-openfiles: /dos/z/16/16/lib/x/MODEX.H:2733:2279:0:
-openfiles: /dos/z/16/16/lib/x/MXVS.ASM:272:0:0:
-openfiles: /dos/z/16/16/lib/x/MXPN.ASM:257:0:0:
-openfiles: /dos/z/16/16/x.bat:0:0:0:
-openfiles: /dos/z/16/16/xx.bat:16:0:1:
+openfiles: /dos/z/16/16/lib/x/MODEX.H:1569:1079:0:
+openfiles: /dos/z/16/16/lib/x/MXVS.ASM:260:0:0:
+openfiles: /dos/z/16/16/lib/x/MXPN.ASM:241:0:0:
+openfiles: /dos/z/16/16/x.bat:71:0:0:
+openfiles: /dos/z/16/16/xx.bat:16:0:0:
+openfiles: /dos/z/16/16/lib/x/MODEX.DEF:4471:3564:0:
+openfiles: /dos/z/16/16/lib/x/MAKEFILE:1186:804:0:
 snr_recursion_level: 0
 convertcolumn_horizontally: 0
 adv_open_matchname: 0
@@ -26,7 +27,7 @@ view_left_panel: 0
 default_mime_type: text/plain
 e2c.convert_xml: 1
 c2e.convert_iso: 0
-opendir: file:///dos/z/16/16
+opendir: file:///dos/z/16/16/lib/x
 wrap_text_default: 0
 bookmarks_filename_mode: 1
 ssearch_text: virtual
@@ -71,21 +72,23 @@ recent_files: file:///dos/z/16/16/w_modex/XPRIM.CPP
 recent_files: file:///dos/z/16/16/w_modex/MODEX.CPP
 recent_files: file:///dos/z/16/16/w_modex/TEST.CPP
 recent_files: file:///dos/z/16/16/Project%2016.bfproject
+recent_files: file:///dos/z/16/16/lib/x/compile.bat
 recent_files: file:///dos/z/16/16/dos_gfx.cpp
 recent_files: file:///dos/z/16/16/dos_gfx.h
 recent_files: file:///dos/z/16/16/dos_kb.c
 recent_files: file:///dos/z/16/16/dos_kb.h
-recent_files: file:///dos/z/16/16/lib/lib_com.cpp
-recent_files: file:///dos/z/16/16/lib/lib_com.h
 recent_files: file:///dos/z/16/16/scroll.txt
-recent_files: file:///dos/z/16/16/project16.txt
-recent_files: file:///dos/z/16/16/16.txt
-recent_files: file:///dos/z/16/16/lib/x/MODEX.DEF
+recent_files: file:///dos/z/16/16/lib/x/MXPN.ASM
 recent_files: file:///dos/z/16/16/lib/x/MODEX.H
 recent_files: file:///dos/z/16/16/lib/x/MXVS.ASM
-recent_files: file:///dos/z/16/16/lib/x/MXPN.ASM
+recent_files: file:///dos/z/16/16/16.txt
+recent_files: file:///dos/z/16/16/lib/lib_com.cpp
+recent_files: file:///dos/z/16/16/lib/lib_com.h
+recent_files: file:///dos/z/16/16/project16.txt
 recent_files: file:///dos/z/16/16/x.bat
 recent_files: file:///dos/z/16/16/xx.bat
+recent_files: file:///dos/z/16/16/lib/x/MODEX.DEF
+recent_files: file:///dos/z/16/16/lib/x/MAKEFILE
 snr_replacetype: 0
 savedir: file:///dos/z/16/16
 spell_check_default: 1
index 3fb7b683f4fa1a2ebf366df5882a6cc131f0e861..d17f6ebb0ea1894253cbf0f42625301f5ad94087 100644 (file)
@@ -6,20 +6,20 @@
  *\r
  * Simple graphics library to accompany the article\r
  * \r
- *                                      INTRODUCTION TO MODE X.\r
+ *                                       INTRODUCTION TO MODE X.\r
  * \r
  * This library provides the basic functions for initializing and using\r
  * unchained (planar) 256-color VGA modes.  Currently supported are:\r
  *\r
- *      - 320x200\r
- *      - 320x240\r
+ *       - 320x200\r
+ *       - 320x240\r
  *\r
  * Functions are provided for:\r
  *\r
- *      - initializing one of the available modes\r
- *      - setting the start address of the VGA refresh data\r
- *      - setting active and visible display pages\r
- *      - writing and reading a single pixel to/from video memory\r
+ *       - initializing one of the available modes\r
+ *       - setting the start address of the VGA refresh data\r
+ *       - setting active and visible display pages\r
+ *       - writing and reading a single pixel to/from video memory\r
  *\r
  * The library is provided as a demonstration only, and is not claimed\r
  * to be particularly efficient or suited for any purpose.  It has only\r
@@ -76,10 +76,10 @@ byte coor;
 /*\r
  * Define the port addresses of some VGA registers.\r
  */\r
-#define CRTC_ADDR         0x3d4   /* Base port of the CRT Controller (color) */\r
+#define CRTC_ADDR         0x3d4   /* Base port of the CRT Controller (color) */\r
 \r
-#define SEQU_ADDR         0x3c4   /* Base port of the Sequencer */\r
-#define GRAC_ADDR         0x3ce   /* Base port of the Graphics Controller */\r
+#define SEQU_ADDR         0x3c4   /* Base port of the Sequencer */\r
+#define GRAC_ADDR         0x3ce   /* Base port of the Graphics Controller */\r
 #define STATUS_ADDR     0x3DA\r
 \r
 unsigned char *RowsX[600];\r
@@ -112,48 +112,48 @@ unsigned actStart, visStart;
 \r
 /*\r
  * set320x200x256_X()\r
- *      sets mode 13h, then turns it into an unchained (planar), 4-page\r
- *      320x200x256 mode.\r
+ *       sets mode 13h, then turns it into an unchained (planar), 4-page\r
+ *       320x200x256 mode.\r
  */\r
 void set320x200x256_X(void)\r
-                {\r
-                union REGS r;\r
+               {\r
+               union REGS r;\r
 \r
-                /* Set VGA BIOS mode 13h: */\r
-                r.x.ax = 0x0013;\r
-                int86(0x10, &r, &r);\r
+               /* Set VGA BIOS mode 13h: */\r
+               r.x.ax = 0x0013;\r
+               int86(0x10, &r, &r);\r
 \r
-                /* Turn off the Chain-4 bit (bit 3 at index 4, port 0x3c4): */\r
-                outpw(SEQU_ADDR, 0x0604);\r
+               /* Turn off the Chain-4 bit (bit 3 at index 4, port 0x3c4): */\r
+               outpw(SEQU_ADDR, 0x0604);\r
 \r
-                /* Turn off word mode, by setting the Mode Control register\r
-                of the CRT Controller (index 0x17, port 0x3d4): */\r
-                outpw(CRTC_ADDR, 0xE317);\r
+               /* Turn off word mode, by setting the Mode Control register\r
+               of the CRT Controller (index 0x17, port 0x3d4): */\r
+               outpw(CRTC_ADDR, 0xE317);\r
 \r
-                /* Turn off doubleword mode, by setting the Underline Location\r
-                   register (index 0x14, port 0x3d4): */\r
-                outpw(CRTC_ADDR, 0x0014);\r
+               /* Turn off doubleword mode, by setting the Underline Location\r
+                  register (index 0x14, port 0x3d4): */\r
+               outpw(CRTC_ADDR, 0x0014);\r
 \r
-                /* Clear entire video memory, by selecting all four planes, then\r
-                   writing 0 to entire segment. */\r
-                outpw(SEQU_ADDR, 0x0F02);\r
-                memset(vga+1, 0, 0xffff); /* stupid size_t exactly 1 too small */\r
-                vga[0] = 0;\r
+               /* Clear entire video memory, by selecting all four planes, then\r
+                  writing 0 to entire segment. */\r
+               outpw(SEQU_ADDR, 0x0F02);\r
+               memset(vga+1, 0, 0xffff); /* stupid size_t exactly 1 too small */\r
+               vga[0] = 0;\r
 \r
-                /* Update the global variables to reflect dimensions of this\r
-                   mode.  This is needed by most future drawing operations. */\r
-                width           = 320;\r
-                height  = 200;\r
+               /* Update the global variables to reflect dimensions of this\r
+                  mode.  This is needed by most future drawing operations. */\r
+               width              = 320;\r
+               height  = 200;\r
 \r
-                /* Each byte addresses four pixels, so the width of a scan line\r
-                   in *bytes* is one fourth of the number of pixels on a line. */\r
-                widthBytes = width / 4;\r
+               /* Each byte addresses four pixels, so the width of a scan line\r
+                  in *bytes* is one fourth of the number of pixels on a line. */\r
+               widthBytes = width / 4;\r
 \r
-                /* By default we want screen refreshing and drawing operations\r
-                   to be based at offset 0 in the video segment. */\r
-                actStart = visStart = 0;\r
+               /* By default we want screen refreshing and drawing operations\r
+                  to be based at offset 0 in the video segment. */\r
+               actStart = visStart = 0;\r
 \r
-                /*\r
+               /*\r
 --------------------\r
 HORIZONTAL SCROLLING\r
 --------------------\r
@@ -191,16 +191,17 @@ OUT value TO PORT 3C0H (where "value" is the
 -----------------------------------------------\r
 */\r
 \r
-                }\r
+//mxSetVirtualScreen(480,360);\r
+               }\r
 \r
 /*\r
  * setActiveStart() tells our graphics operations which address in video\r
  * memory should be considered the top left corner.\r
  */\r
 void setActiveStart(unsigned offset)\r
-                {\r
-                actStart = offset;\r
-                }\r
+               {\r
+               actStart = offset;\r
+               }\r
 \r
 /*\r
  * setVisibleStart() tells the VGA from which byte to fetch the first\r
@@ -211,13 +212,13 @@ void setActiveStart(unsigned offset)
  * set, but before the low byte is set, which produces a bad flicker.\r
  */\r
 void setVisibleStart(unsigned offset)\r
-                {\r
-                visStart = offset;\r
-                outpw(CRTC_ADDR, 0x0C);   /* set high byte */\r
-                outpw(CRTC_ADDR+1, visStart >> 8);\r
-                outpw(CRTC_ADDR, 0x0D);   /* set low byte */\r
-                outpw(CRTC_ADDR+1, visStart & 0xff);\r
-                }\r
+               {\r
+               visStart = offset;\r
+               outpw(CRTC_ADDR, 0x0C);          /* set high byte */\r
+               outpw(CRTC_ADDR+1, visStart >> 8);\r
+               outpw(CRTC_ADDR, 0x0D);          /* set low byte */\r
+               outpw(CRTC_ADDR+1, visStart & 0xff);\r
+               }\r
 \r
 /*\r
  * setXXXPage() sets the specified page by multiplying the page number\r
@@ -226,200 +227,130 @@ void setVisibleStart(unsigned offset)
  * function.  The first page is number 0.\r
  */\r
 void setActivePage(int page)\r
-                {\r
-                setActiveStart(page * widthBytes * height);\r
-                }\r
+               {\r
+               setActiveStart(page * widthBytes * height);\r
+               }\r
 \r
 void setVisiblePage(int page)\r
-                {\r
-                setVisibleStart(page * widthBytes * height);\r
-                }\r
+               {\r
+               setVisibleStart(page * widthBytes * height);\r
+               }\r
 \r
 void putPixel_X(int x, int y, byte color)\r
-                {\r
-                /* Each address accesses four neighboring pixels, so set\r
-                   Write Plane Enable according to which pixel we want\r
-                   to modify.  The plane is determined by the two least\r
-                   significant bits of the x-coordinate: */\r
-                outp(0x3c4, 0x02);\r
-                outp(0x3c5, 0x01 << (x & 3));\r
-\r
-                /* The offset of the pixel into the video segment is\r
-                   offset = (width * y + x) / 4, and write the given\r
-                   color to the plane we selected above.  Heed the active\r
-                   page start selection. */\r
-                vga[(unsigned)(widthBytes * y) + (x / 4) + actStart] = color;\r
-\r
-                }\r
+               {\r
+               /* Each address accesses four neighboring pixels, so set\r
+                  Write Plane Enable according to which pixel we want\r
+                  to modify.  The plane is determined by the two least\r
+                  significant bits of the x-coordinate: */\r
+               outp(0x3c4, 0x02);\r
+               outp(0x3c5, 0x01 << (x & 3));\r
+\r
+               /* The offset of the pixel into the video segment is\r
+                  offset = (width * y + x) / 4, and write the given\r
+                  color to the plane we selected above.  Heed the active\r
+                  page start selection. */\r
+               vga[(unsigned)(widthBytes * y) + (x / 4) + actStart] = color;\r
+\r
+               }\r
 \r
 byte getPixel_X(int x, int y)\r
-                {\r
-                /* Select the plane from which we must read the pixel color: */\r
-                outpw(GRAC_ADDR, 0x04);\r
-                outpw(GRAC_ADDR+1, x & 3);\r
+               {\r
+               /* Select the plane from which we must read the pixel color: */\r
+               outpw(GRAC_ADDR, 0x04);\r
+               outpw(GRAC_ADDR+1, x & 3);\r
 \r
-                return vga[(unsigned)(widthBytes * y) + (x / 4) + actStart];\r
+               return vga[(unsigned)(widthBytes * y) + (x / 4) + actStart];\r
 \r
-                }\r
+               }\r
 \r
 void set320x240x256_X(void)\r
-                {\r
-                /* Set the unchained version of mode 13h: */\r
-                set320x200x256_X();\r
-\r
-                /* Modify the vertical sync polarity bits in the Misc. Output\r
-                   Register to achieve square aspect ratio: */\r
-                outp(0x3C2, 0xE3);\r
-\r
-                /* Modify the vertical timing registers to reflect the increased\r
-                   vertical resolution, and to center the image as good as\r
-                   possible: */\r
-                outpw(0x3D4, 0x2C11);           /* turn off write protect */\r
-                outpw(0x3D4, 0x0D06);           /* vertical total */\r
-                outpw(0x3D4, 0x3E07);           /* overflow register */\r
-                outpw(0x3D4, 0xEA10);           /* vertical retrace start */\r
-                outpw(0x3D4, 0xAC11);           /* vertical retrace end AND wr.prot */\r
-                outpw(0x3D4, 0xDF12);           /* vertical display enable end */\r
-                outpw(0x3D4, 0xE715);           /* start vertical blanking */\r
-                outpw(0x3D4, 0x0616);           /* end vertical blanking */\r
-\r
-                /* Update mode info, so future operations are aware of the\r
-                   resolution */\r
-                height = 240;\r
-\r
-//#pragma aux mxSetVirtualScreen "_"\r
-//void mxSetVirtualScreen(unsigned short int width, unsigned short int height);\r
-mxSetVirtualScreen(480,360);\r
-                }\r
+               {\r
+               /* Set the unchained version of mode 13h: */\r
+               set320x200x256_X();\r
+\r
+               /* Modify the vertical sync polarity bits in the Misc. Output\r
+                  Register to achieve square aspect ratio: */\r
+               outp(0x3C2, 0xE3);\r
+\r
+               /* Modify the vertical timing registers to reflect the increased\r
+                  vertical resolution, and to center the image as good as\r
+                  possible: */\r
+               outpw(0x3D4, 0x2C11);              /* turn off write protect */\r
+               outpw(0x3D4, 0x0D06);              /* vertical total */\r
+               outpw(0x3D4, 0x3E07);              /* overflow register */\r
+               outpw(0x3D4, 0xEA10);              /* vertical retrace start */\r
+               outpw(0x3D4, 0xAC11);              /* vertical retrace end AND wr.prot */\r
+               outpw(0x3D4, 0xDF12);              /* vertical display enable end */\r
+               outpw(0x3D4, 0xE715);              /* start vertical blanking */\r
+               outpw(0x3D4, 0x0616);              /* end vertical blanking */\r
+\r
+               /* Update mode info, so future operations are aware of the\r
+                  resolution */\r
+               height = 240;\r
+\r
+               }\r
 \r
 \r
 /*-----------XXXX-------------*/\r
 \r
 /////////////////////////////////////////////////////////////////////////////\r
-//                                                                       //\r
-// WaitRetrace() - This waits until you are in a Verticle Retrace.       //\r
-//                                                                       //\r
+//                                                                         //\r
+// WaitRetrace() - This waits until you are in a Verticle Retrace.         //\r
+//                                                                         //\r
 /////////////////////////////////////////////////////////////////////////////\r
 void wait_for_retrace(void)\r
 {\r
     while (!(inp(STATUS_ADDR) & 0x08));\r
 }\r
 \r
-/////////////////////////////////////////////////////////////////////////////\r
-//                                                                       //\r
-// MoveTo() - This moves to position X*4 on a chain 4 screen.           //\r
-//              Note: As soon as I find documentation, this function     //\r
-//              will be better documented.  - Snowman               //\r
-//                                                                       //\r
-/////////////////////////////////////////////////////////////////////////////\r
-/*\r
-void MoveTo (word X, word Y) {\r
-\r
-//      word O = Y*SIZE*2+X;\r
-        word O = Y*widthBytes*2+X;\r
-\r
-  asm {\r
-    mov    bx, [O]\r
-    mov    ah, bh\r
-    mov    al, 0x0C\r
-\r
-    mov    dx, 0x3D4\r
-    out    dx, ax\r
-\r
-    mov    ah, bl\r
-    mov    al, 0x0D\r
-    mov    dx, 0x3D4\r
-    out    dx, ax\r
-  }\r
-\r
-}\r
-\r
-//Procedure Play;\r
-void Play()\r
-{\r
-  int loop1,loop2;\r
-  int xpos,ypos,xdir,ydir;\r
-  //int ch;\r
-//   for(loop1=1;loop1<=62;loop1++)\r
-     //Pal ((char)loop1,(char)loop1,(char)0,(char)(62-loop1)); // { This sets up the pallette for the pic }\r
-\r
-   moveto(0,0,Size); // { This moves the view to the top left hand corner }\r
-\r
-//   for(loop1=0;loop1<=3;loop1++)\r
-//     for(loop2=0;loop2<=5;loop2++)\r
-//       Putpic (loop1*160,loop2*66); // { This places the picture all over the\r
-                                    //  chain-4 screen }\r
-//   getch();\r
-//   ch=0x0;\r
-//   xpos=rand (78)+1;\r
-//   ypos=rand (198)+1; // { Random start positions for the view }\r
-        xpos=0;\r
-        ypos=0;\r
-   xdir=1;\r
-   ydir=1;\r
-//   while(1)\r
-//   {\r
-     WaitRetrace();     //     { Take this out and watch the screen go crazy! }\r
-     moveto (xpos,ypos,Size);\r
-     xpos=xpos+xdir;\r
-     ypos=ypos+ydir;\r
-     if( (xpos>79)  || (xpos<1))xdir=-xdir;\r
-     if( (ypos>199) || (ypos<1))ydir=-ydir; // { Hit a boundry, change\r
-                                            //    direction! }\r
-//     if(_bios_keybrd(_KEYBRD_READY))ch=getch();\r
-//       if(ch==0x71)break; // 'q'\r
-//       if(ch==0x1b)break; // 'ESC'\r
-//   }\r
-}\r
-*/\r
 /*tile*/\r
 //king_crimson's code\r
 void putColorBox_X(int x, int y, int w, int h, byte color) {\r
-        outp(0x3c4, 0x02);\r
-\r
-        int curx, cury;\r
-        unsigned drawptr;\r
-        for (curx=x; curx<(x+w); curx++) {\r
-                outp(0x3c5, 0x01 << (curx & 3));\r
-                drawptr = (unsigned)(widthBytes * y) + (curx / 4) + actStart;\r
-                for (cury=0; cury<h; cury++) {\r
-                        vga[drawptr] = color;\r
-                        drawptr += widthBytes;\r
-                }\r
-        }\r
+       outp(0x3c4, 0x02);\r
+\r
+       int curx, cury;\r
+       unsigned drawptr;\r
+       for (curx=x; curx<(x+w); curx++) {\r
+               outp(0x3c5, 0x01 << (curx & 3));\r
+               drawptr = (unsigned)(widthBytes * y) + (curx / 4) + actStart;\r
+               for (cury=0; cury<h; cury++) {\r
+                       vga[drawptr] = color;\r
+                       drawptr += widthBytes;\r
+               }\r
+       }\r
 }\r
 \r
 void vScroll(int rows)\r
 {\r
-        // Scrolling = current start + (rows * bytes in a row)\r
-        setVisibleStart(visStart + (rows * width));\r
+       // Scrolling = current start + (rows * bytes in a row)\r
+       setVisibleStart(visStart + (rows * width));\r
 }\r
 \r
 void scrolly(int bongy)\r
 {\r
-        int boingy=0;\r
-        if(bongy<0)\r
-                boingy=-1;\r
-        else if(bongy>0)\r
-                boingy=1;\r
-\r
-        for(int ti=0;ti<TILEWH;ti++)\r
-        {\r
-                delay(1);\r
-                vScroll(boingy);\r
-        }\r
+       int boingy=0;\r
+       if(bongy<0)\r
+               boingy=-1;\r
+       else if(bongy>0)\r
+               boingy=1;\r
+\r
+       for(int ti=0;ti<TILEWH;ti++)\r
+       {\r
+               delay(1);\r
+               vScroll(boingy);\r
+       }\r
 }\r
 \r
 //king_crimson's code\r
 void hScroll(int Cols) {\r
-        wait_for_retrace();\r
-        outp(0x3C0, 0x13);\r
-        outp(0x3C0, Cols & 3);\r
-        outp(0x3D4, 0x13);\r
-        outp(0x3D5, Cols >> 2);\r
-        outp(0x3D4, Cols);\r
-        //setVisibleStart(visStart + (Cols * height));\r
-        setVisibleStart(visStart + (Cols * width));\r
+       wait_for_retrace();\r
+       outp(0x3C0, 0x13);\r
+       outp(0x3C0, Cols & 3);\r
+       outp(0x3D4, 0x13);\r
+       outp(0x3D5, Cols >> 2);\r
+       outp(0x3D4, Cols);\r
+       //setVisibleStart(visStart + (Cols * height));\r
+       setVisibleStart(visStart + (Cols * width));\r
 }\r
 \r
 /*To implement smooth horizontal scrolling, you would do the following:\r
@@ -463,29 +394,29 @@ so we can draw off the edge of the screen.
 Perhaps a little diagram will clarify it. The following picture is of a\r
 standard X-mode addressing scheme with the OFFSET register set to 80.\r
 \r
-        ROW    OFFSET\r
-        0        0 ========================\r
-        1       80 [                    ]\r
-        2        160 [                  ]\r
-        ..       .. [    VISIBLE        ]\r
-                  [     SCREEN  ]\r
-                  [                     ]\r
-                  [                     ]\r
-        ..       .. [                   ]\r
-        199   15920 ========================\r
+      ROW    OFFSET\r
+              0 ========================\r
+      1        80 [                      ]\r
+      2       160 [                      ]\r
+      ..       .. [       VISIBLE        ]\r
+                  [        SCREEN        ]\r
+                  [                      ]\r
+                  [                      ]\r
+      ..       .. [                      ]\r
+      199   15920 ========================\r
 \r
 and the next diagram is of a modified addressing scheme with the OFFSET\r
 register set to 82 (to give us 4 extra pixels on each side of the screen)\r
 \r
 ROW    OFFSET\r
-0        0 ------========================------\r
-1       82 |   V [                      ]   V |\r
-2        164 |   I [                    ]   I |\r
-..       .. | N S [     VISIBLE  ] N S |\r
-            | O I [      SCREEN  ] O I |\r
-            | T B [                     ] T B |\r
-            |   L [                     ]   L |\r
-..       .. |   E [                     ]   E |\r
+0         0 ------========================------\r
+1        82 |   V [                      ]   V |\r
+2       164 |   I [                      ]   I |\r
+..       .. | N S [      VISIBLE         ] N S |\r
+            | O I [       SCREEN         ] O I |\r
+            | T B [                      ] T B |\r
+            |   L [                      ]   L |\r
+..       .. |   E [                      ]   E |\r
 199   16318 ------========================------\r
 \r
 Beautiful!!!\r
@@ -519,297 +450,306 @@ I'm sorry about this being so confusing but it's a bit difficult to explain.
 */\r
 int loadfontX(char *fname)\r
 {\r
-        FILE *fp;\r
+       FILE *fp;\r
 \r
-        fp = fopen(fname, "rb");\r
+       fp = fopen(fname, "rb");\r
 \r
-        if (fp == NULL) {\r
-                return 0;\r
-        } else {\r
-                fread(Xfont, 8, 256, fp);\r
-                fclose(fp);\r
-                return 1;\r
-        }\r
+       if (fp == NULL) {\r
+               return 0;\r
+       } else {\r
+               fread(Xfont, 8, 256, fp);\r
+               fclose(fp);\r
+               return 1;\r
+       }\r
 }\r
 \r
 void putchX(cord x, cord y, char c, byte color)\r
 {\r
-        int i;\r
-        byte *vga_ptr;\r
-        byte *font_ptr;\r
-        byte temp;\r
-\r
-        // 8x8 font\r
-        vga_ptr = RowsX[y << 3] + (x << 1) + actStart;\r
-        write_plane = -1;\r
-\r
-        font_ptr = Xfont + (c << 3);\r
-\r
-        i=8;\r
-        while (i--) {\r
-                temp = *font_ptr++;\r
-                outpw(SEQU_ADDR, text_mask[temp & 0x0F]);\r
-                *vga_ptr++ = color;\r
-\r
-                outpw(SEQU_ADDR, text_mask[temp >> 4]);\r
-                *vga_ptr-- = color;\r
-                vga_ptr += widthBytes;\r
-        }\r
+       int i;\r
+       byte *vga_ptr;\r
+       byte *font_ptr;\r
+       byte temp;\r
+\r
+       // 8x8 font\r
+       vga_ptr = RowsX[y << 3] + (x << 1) + actStart;\r
+       write_plane = -1;\r
+\r
+       font_ptr = Xfont + (c << 3);\r
+\r
+       i=8;\r
+       while (i--) {\r
+               temp = *font_ptr++;\r
+               outpw(SEQU_ADDR, text_mask[temp & 0x0F]);\r
+               *vga_ptr++ = color;\r
+\r
+               outpw(SEQU_ADDR, text_mask[temp >> 4]);\r
+               *vga_ptr-- = color;\r
+               vga_ptr += widthBytes;\r
+       }\r
 }\r
 \r
 void putstringX(cord x, cord y, char *str, byte color)\r
 {\r
-        int i, skip;\r
-        byte *vga_ptr;\r
-        byte *font_ptr;\r
-        byte c, temp;\r
+       int i, skip;\r
+       byte *vga_ptr;\r
+       byte *font_ptr;\r
+       byte c, temp;\r
 \r
-        // 8x8 font\r
-        vga_ptr = RowsX[y << 3] + (x << 1) + actStart;\r
-        write_plane = -1;\r
+       // 8x8 font\r
+       vga_ptr = RowsX[y << 3] + (x << 1) + actStart;\r
+       write_plane = -1;\r
 \r
-        skip = 2 - (widthBytes << 3);\r
+       skip = 2 - (widthBytes << 3);\r
 \r
-        while (c = *str++) {\r
-                font_ptr = Xfont + (c << 3);\r
+       while (c = *str++) {\r
+               font_ptr = Xfont + (c << 3);\r
 \r
-                i=8;\r
-                while (i--) {\r
-                        temp = *font_ptr++;\r
-                        outpw(SEQU_ADDR, text_mask[temp & 0x0F]);\r
-                        *vga_ptr++ = color;\r
+               i=8;\r
+               while (i--) {\r
+                       temp = *font_ptr++;\r
+                       outpw(SEQU_ADDR, text_mask[temp & 0x0F]);\r
+                       *vga_ptr++ = color;\r
 \r
-                        outpw(SEQU_ADDR, text_mask[temp >> 4]);\r
-                        *vga_ptr-- = color;\r
-                        vga_ptr += widthBytes;\r
-                }\r
+                       outpw(SEQU_ADDR, text_mask[temp >> 4]);\r
+                       *vga_ptr-- = color;\r
+                       vga_ptr += widthBytes;\r
+               }\r
 \r
-                vga_ptr += skip;\r
-        }\r
+               vga_ptr += skip;\r
+       }\r
 }\r
 \r
 /////////////////////////////////////////////////////////////////////////////\r
-//                                                                       //\r
-// setvideo() - This function Manages the video modes                                //\r
-//                                                                       //\r
+//                                                                         //\r
+// setvideo() - This function Manages the video modes                                    //\r
+//                                                                         //\r
 /////////////////////////////////////////////////////////////////////////////\r
 void setvideo(/*byte mode, */int vq){\r
-                union REGS in, out;\r
-\r
-                if(!vq){ // deinit the video\r
-                                // change to the video mode we were in before we switched to mode 13h\r
-                                in.h.ah = 0x00;\r
-                                in.h.al = old_mode;\r
-                                int86(0x10, &in, &out);\r
-\r
-                }else if(vq == 1){ // init the video\r
-                                // get old video mode\r
-                                in.h.ah = 0xf;\r
-                                int86(0x10, &in, &out);\r
-                                old_mode = out.h.al;\r
-\r
-                                // enter mode\r
-                                set320x240x256_X();\r
-                }\r
+               union REGS in, out;\r
+\r
+               if(!vq){ // deinit the video\r
+                               // change to the video mode we were in before we switched to mode 13h\r
+                               //mxSetMode( MX_TEXT );\r
+                               //mxTerm();\r
+                               in.h.ah = 0x00;\r
+                               in.h.al = old_mode;\r
+                               int86(0x10, &in, &out);\r
+\r
+               }else if(vq == 1){ // init the video\r
+                               // get old video mode\r
+                               in.h.ah = 0xf;\r
+                               int86(0x10, &in, &out);\r
+                               old_mode = out.h.al;\r
+\r
+                               // enter mode\r
+                               //mxInit();\r
+                               //mxSetMode( MX_320x200 );\r
+                               //mxSetVirtualScreen( 640, 400 );\r
+                               set320x240x256_X();\r
+                               //mxSetMode(MX_320x240);\r
+                               //mxSetVirtualScreen(560,420);\r
+                               //mxSetVirtualScreen((640-TILEWH),(480-TILEWH));\r
+                               //mxSetClip( TRUE );\r
+               }\r
 }\r
 \r
 /////////////////////////////////////////////////////////////////////////////\r
-//                                                                                                                                               //\r
+//                                                                                                                                              //\r
 // cls() - This clears the screen to the specified color, on the VGA or on //\r
-//               the Virtual screen.                                                                                 //\r
-//                                                                                                                                               //\r
+//              the Virtual screen.                                                                                     //\r
+//                                                                                                                                              //\r
 /////////////////////////////////////////////////////////////////////////////\r
 void cls(byte color, byte *Where){\r
-                _fmemset(Where, color, width*(height*17));\r
+               _fmemset(Where, color, width*(height*17));\r
 }\r
 \r
 //color \82Ä\82·\82Æ\r
 int colortest(){\r
-                if(gq < NUM_COLORS){\r
-                                cls(gq, vga);\r
-                                gq++;\r
-                }else gq = 0;\r
-                return gq;\r
+               if(gq < NUM_COLORS){\r
+                               cls(gq, vga);\r
+                               gq++;\r
+               }else gq = 0;\r
+               return gq;\r
 }\r
 \r
 //color \82Ä\82·\82Æ\r
 int colorz(){\r
-                if(gq < HGQ){\r
-//----      cls(gq, vaddr);\r
-                                cls(gq, vga);\r
-                                gq++;\r
-                }else gq = LGQ;\r
-                return gq;\r
+               if(gq < HGQ){\r
+//----           cls(gq, vaddr);\r
+                               cls(gq, vga);\r
+                               gq++;\r
+               }else gq = LGQ;\r
+               return gq;\r
 }\r
 \r
 //slow spectrum down\r
 void ssd(int svq){\r
-                if(sy < height+1){\r
-                                if(sx < width+1){\r
-                                                //plotpixel(xx, yy, coor, vga);\r
-                                                //ppf(sx, sy, coor, vga);\r
-                                                putPixel_X(sx, sy, coor);\r
-                                                //printf("%d %d %d %d\n", sx, sy, svq, coor);\r
-                                                sx++;\r
-                                }else sx = 0;\r
-                                if(sx == width){\r
-                                                sy++;\r
-                                                if(svq == 7) coor++;\r
-                                                if(sy == height && svq == 8) coor = rand()%NUM_COLORS;\r
-                                }\r
-                }else sy = 0;\r
+               if(sy < height+1){\r
+                               if(sx < width+1){\r
+                                               //plotpixel(xx, yy, coor, vga);\r
+                                               //ppf(sx, sy, coor, vga);\r
+                                               putPixel_X(sx, sy, coor);\r
+                                               //printf("%d %d %d %d\n", sx, sy, svq, coor);\r
+                                               sx++;\r
+                               }else sx = 0;\r
+                               if(sx == width){\r
+                                               sy++;\r
+                                               if(svq == 7) coor++;\r
+                                               if(sy == height && svq == 8) coor = rand()%NUM_COLORS;\r
+                               }\r
+               }else sy = 0;\r
 }\r
 \r
 /*-----------ding-------------*/\r
 int ding(int q){\r
 \r
-//      if(yy<height){\r
-                setActivePage(0);\r
-                setVisiblePage(0);\r
-/*      }\r
-        if((height)<yy<(height*2)){\r
-                setActivePage(1);\r
-                setVisiblePage(1);\r
-        }\r
-        if((height*2)<yy<(height*3)){\r
-                setActivePage(2);\r
-                setVisiblePage(2);\r
-        }*/\r
-                int d3y;\r
+//     if(yy<height){\r
+               setActivePage(0);\r
+               setVisiblePage(0);\r
+/*     }\r
+       if((height)<yy<(height*2)){\r
+               setActivePage(1);\r
+               setVisiblePage(1);\r
+       }\r
+       if((height*2)<yy<(height*3)){\r
+               setActivePage(2);\r
+               setVisiblePage(2);\r
+       }*/\r
+               int d3y;\r
 \r
 //++++  if(q <= 4 && q!=2 && gq == BONK-1) coor = rand()%HGQ;\r
-                if((q == 2\r
-                ||q==4\r
-                ||q==16\r
-                ) && gq == BONK){\r
-                                                if(coor < HGQ && coor < LGQ) coor = LGQ;\r
-                                                if(coor < HGQ-1){\r
-                                                                coor++;\r
-                                }else{ coor = LGQ;\r
-                                                bakax = rand()%3; bakay = rand()%3;\r
-                                }\r
-                }\r
-\r
-                if(q==8){ colorz(); return gq; }else\r
-                if(q==10){ ssd(q); /*printf("%d\n", coor);*/ }else\r
-                if(q==5){ colortest(); return gq; }else\r
-                if(q==11){ colorz(); delay(100); return gq; }\r
-                if(q==6){\r
-                                coor = rand()%NUM_COLORS;\r
-//----      cls(coor, vaddr);\r
-                                cls(coor, vga);\r
-                                //updatevbuff();\r
-                }\r
-\r
-                if(q==7||q==9){\r
-                                if(gq < HGQ){\r
-                                                if(q == 7) ssd(q);\r
-                                                if(q == 9){ ssd(q); coor++; }\r
-                                                gq++;\r
-                                }else gq = LGQ;\r
-                }\r
-                if((q<5 && gq<BONK) || (q==16 && gq<BONK)){ // the number variable make the colors more noticable\r
-                                if(q==1){\r
-                                                if(xx==width){bakax=0;}\r
-                                                if(xx==0){bakax=1;}\r
-                                                if(yy==height){bakay=0;}\r
-                                                if(yy==0){bakay=1;}\r
-                                }else if(q==3){\r
-                                                if(xx!=width||yy!=height){\r
-                                                                if(xx==0){bakax=1;bakay=-1;d3y=1;}\r
-                                                                if(yy==0){bakax=1;bakay=0;d3y=1;}\r
-                                                                if(xx==width){bakax=-1;bakay=-1;d3y=1;}\r
-                                                                if(yy==height){bakax=1;bakay=0;d3y=1;}\r
-                                                }else if(xx==width&&yy==height) xx=yy=0;\r
-                                }\r
-                                if(q==3){\r
-                                                if(d3y){\r
-                                                                if(bakay<0){\r
-                                                                                yy--;\r
-                                                                                d3y--;\r
-                                                                }else\r
-                                                                if(bakay>0){\r
-                                                                                yy++;\r
-                                                                                d3y--;\r
-                                                                }\r
-                                                }\r
-                                                if(bakax<0){\r
-                                                                xx--;\r
-                                                }else\r
-                                                if(bakax>0){\r
-                                                                xx++;\r
-                                                }\r
-                                }else{\r
-                                                if(q==16)\r
-                                                {\r
-                                                                if(!bakax){\r
-                                                                                xx--;//=TILEWH;\r
-                                                                }else if(bakax>0){\r
-                                                                                xx++;//=TILEWH;\r
-                                                                }\r
-                                                                if(!bakay){\r
-                                                                                yy--;//=TILEWH;\r
-                                                                }else if(bakay>0){\r
-                                                                                yy++;//=TILEWH;\r
-                                                                }\r
-                                                }else{\r
-                                                                if(!bakax){\r
-//                                                                              xx-=TILEWH;\r
-                                                                                xx--;\r
-                                                                }else if(bakax>1){\r
-//                                                                              xx+=TILEWH;\r
-                                                                                xx++;\r
-                                                                }\r
-                                                                if(!bakay){\r
-//                                                                              yy-=TILEWH;\r
-                                                                                yy--;\r
-                                                                }else if(bakay>1){\r
-//                                                                              yy+=TILEWH;\r
-                                                                                yy++;\r
-                                                                }\r
-                                                }\r
-                                }\r
-                                // fixer\r
-//                              if(q!=16){\r
+               if((q == 2\r
+               ||q==4\r
+               ||q==16\r
+               ) && gq == BONK){\r
+                                               if(coor < HGQ && coor < LGQ) coor = LGQ;\r
+                                               if(coor < HGQ-1){\r
+                                                               coor++;\r
+                               }else{ coor = LGQ;\r
+                                               bakax = rand()%3; bakay = rand()%3;\r
+                               }\r
+               }\r
+\r
+               if(q==8){ colorz(); return gq; }else\r
+               if(q==10){ ssd(q); /*printf("%d\n", coor);*/ }else\r
+               if(q==5){ colortest(); return gq; }else\r
+               if(q==11){ colorz(); delay(100); return gq; }\r
+               if(q==6){\r
+                               coor = rand()%NUM_COLORS;\r
+//----           cls(coor, vaddr);\r
+                               cls(coor, vga);\r
+                               //updatevbuff();\r
+               }\r
+\r
+               if(q==7||q==9){\r
+                               if(gq < HGQ){\r
+                                               if(q == 7) ssd(q);\r
+                                               if(q == 9){ ssd(q); coor++; }\r
+                                               gq++;\r
+                               }else gq = LGQ;\r
+               }\r
+               if((q<5 && gq<BONK) || (q==16 && gq<BONK)){ // the number variable make the colors more noticable\r
+                               if(q==1){\r
+                                               if(xx==width){bakax=0;}\r
+                                               if(xx==0){bakax=1;}\r
+                                               if(yy==height){bakay=0;}\r
+                                               if(yy==0){bakay=1;}\r
+                               }else if(q==3){\r
+                                               if(xx!=width||yy!=height){\r
+                                                               if(xx==0){bakax=1;bakay=-1;d3y=1;}\r
+                                                               if(yy==0){bakax=1;bakay=0;d3y=1;}\r
+                                                               if(xx==width){bakax=-1;bakay=-1;d3y=1;}\r
+                                                               if(yy==height){bakax=1;bakay=0;d3y=1;}\r
+                                               }else if(xx==width&&yy==height) xx=yy=0;\r
+                               }\r
+                               if(q==3){\r
+                                               if(d3y){\r
+                                                               if(bakay<0){\r
+                                                                               yy--;\r
+                                                                               d3y--;\r
+                                                               }else\r
+                                                               if(bakay>0){\r
+                                                                               yy++;\r
+                                                                               d3y--;\r
+                                                               }\r
+                                               }\r
+                                               if(bakax<0){\r
+                                                               xx--;\r
+                                               }else\r
+                                               if(bakax>0){\r
+                                                               xx++;\r
+                                               }\r
+                               }else{\r
+                                               if(q==16)\r
+                                               {\r
+                                                               if(!bakax){\r
+                                                                       xx--;\r
+                                                               }else if(bakax>0){\r
+                                                                       xx++;\r
+                                                               }\r
+                                                               if(!bakay){\r
+                                                                       yy--;\r
+                                                               }else if(bakay>0){\r
+                                                                       yy++;\r
+                                                               }\r
+                                               }else{\r
+                                                               if(!bakax){\r
+                                                                       xx-=TILEWH;\r
+//                                                                     xx--;\r
+                                                               }else if(bakax>1){\r
+                                                                       xx+=TILEWH;\r
+//                                                                     xx++;\r
+                                                               }\r
+                                                               if(!bakay){\r
+                                                                       yy-=TILEWH;\r
+//                                                                     yy--;\r
+                                                               }else if(bakay>1){\r
+                                                                       yy+=TILEWH;\r
+//                                                                     yy++;\r
+                                                               }\r
+                                               }\r
+                               }\r
+                               // fixer\r
+//                             if(q!=16){\r
 //if(q!=16)\r
-//                                              if(xx<(0/*-(TILEWH/2)*/)) xx=(width/*+(TILEWH)*/);\r
-                                                if(yy<0) yy=(height*3);\r
-//                                              if(xx>(width/*+(TILEWH)*/)) xx=(0/*-(TILEWH/2)*/);\r
-                                                if(yy>(height*3)) yy=0;\r
-//                              }\r
+//                                             if(xx<0) xx=(width-TILEWH);\r
+//                                             if(yy<0) yy=(height-TILEWH);\r
+//                                             if(xx>(width-TILEWH)) xx=0;\r
+//                                             if(yy>(height-TILEWH)) yy=0;\r
+//                             }\r
 \r
 //interesting effects\r
-                                if(q==16)\r
-                                {\r
-                                int tx=0,ty=0;\r
-                                tx+=xx+16;\r
-                                ty+=yy+16;\r
-                                putPixel_X(tx, ty, coor);\r
-                                //drawrect(tx, ty, tx+TILEWH, ty+TILEWH, coor);\r
-                                //printf("%d %d %d %d %d %d\n", xx, yy, tx, ty, TILEWH);\r
-\r
-                                // plot the pixel\r
-//----      ppf(xx, yy, coor, vga);\r
-                                }else /*if(xx>=0 && xx<width && yy>=0 && yy<(height*3))*/{\r
-//                                      putColorBox_X(xx, yy, TILEWH, TILEWH, coor);\r
+                               if(q==16)\r
+                               {\r
+                               int tx=0,ty=0;\r
+                               tx+=xx+16;\r
+                               ty+=yy+16;\r
+                               putPixel_X(tx, ty, coor);\r
+                               //drawrect(tx, ty, tx+TILEWH, ty+TILEWH, coor);\r
+                               //printf("%d %d %d %d %d %d\n", xx, yy, tx, ty, TILEWH);\r
+\r
+                               // plot the pixel\r
+//----           ppf(xx, yy, coor, vga);\r
+                               }else /*if(xx>=0 && xx<width && yy>=0 && yy<(height*3))*/{\r
+                                       putColorBox_X(xx, yy, TILEWH, TILEWH, coor);\r
 //++++0000\r
-                                        putPixel_X(xx, yy, coor);\r
-                                \r
+//                                     putPixel_X(xx, yy, coor);\r
+                               } \r
 \r
-//----      if(q==2) ppf(rand()%, rand()%height, 0, vga);\r
-//                              if(q==2) putColorBox_X(rand()%width, rand()%(height*3), TILEWH, TILEWH, 0);\r
+//----           if(q==2) ppf(rand()%, rand()%height, 0, vga);\r
+//                             if(q==2) putColorBox_X(rand()%width, rand()%(height*3), TILEWH, TILEWH, 0);\r
 //++++0000\r
-                                if(q==2) putPixel_X(rand()%width, rand()%(height*3), 0);\r
-                                if(q==16) putPixel_X(rand()%width, rand()%(height*3), 0);\r
-                                if(q==2||q==4||q==16){ bakax = rand()%3; bakay = rand()%3; }\r
-                                gq++;\r
+                               if(q==2) putPixel_X(rand()%width, rand()%(height*3), 0);\r
+                               if(q==16) putPixel_X(rand()%width, rand()%(height*3), 0);\r
+                               if(q==2||q==4||q==16){ bakax = rand()%3; bakay = rand()%3; }\r
+                               gq++;\r
 //if(xx<0||xx>320||yy<0||yy>(height*3))\r
-//      printf("%d %d %d %d %d %d\n", xx, yy, coor, bakax, bakay, getPixel_X(xx,yy));\r
-//      printf("%d\n", getPixel_X(xx,yy));\r
+//       printf("%d %d %d %d %d %d\n", xx, yy, coor, bakax, bakay, getPixel_X(xx,yy));\r
+//       printf("%d\n", getPixel_X(xx,yy));\r
 //0000\r
-//      drawText(0, 0, 15, getPixel_X(xx,yy));\r
-                }else gq = LGQ;\r
-                return gq;\r
+//       drawText(0, 0, 15, getPixel_X(xx,yy));\r
+               }else gq = LGQ;\r
+               return gq;\r
 }\r
 \r
 \r
@@ -824,124 +764,134 @@ int ding(int q){
 #include <conio.h>\r
 \r
 void doTest(void)\r
-                {\r
-                int p, x, y, pages;\r
-\r
-                /* This is the way to calculate the number of pages available. */\r
-                pages = 65536L/(widthBytes*height); // apparently this takes the A000 address\r
-//              if(height==240) pages++;\r
-\r
-//              printf("%d\n", pages);\r
-\r
-                for (p = 0; p <= pages; ++p)\r
-                                {\r
-                                setActivePage(p);\r
-\r
-                                /* On each page draw a single colored border, and dump the palette\r
-                                   onto a small square about the middle of the page. */\r
-\r
-                                   //{\r
-                                                for (x = 0; x <= width; ++x)\r
-                                                                {\r
-                                                                putPixel_X(x, 0, p+1);\r
-                                                                if(p!=pages) putPixel_X(x, height-1, p+1);\r
-                                                                                else if(height==240) putPixel_X(x, 99-1, p+1);\r
-                                                                }\r
-\r
-                                                for (y = 0; y <= height; ++y)\r
-                                                                {\r
-                                                                putPixel_X(0, y, p+1);\r
-                                                                if(p!=pages) putPixel_X(width-1, y, p+1);\r
-                                                                                else if(height==240) putPixel_X(width-1, y, p+1);\r
-                                                                }\r
-\r
-                                                for (x = 0; x < TILEWH; ++x)\r
-                                                                for (y = 0; y < TILEWH; ++y)\r
-                                                                                putPixel_X(x+(p+2)*16, y+(p+2)*TILEWH, x + y*TILEWH);\r
-                                                //}\r
-\r
-                                }\r
-\r
-                /* Each pages will now contain a different image.  Let the user cycle\r
-                   through all the pages by pressing a key. */\r
-                for (p = 0; p < pages; ++p)\r
-                                {\r
-                                setVisiblePage(p);\r
-                                getch();\r
-                                }\r
-\r
-                }\r
+               {\r
+               int p, x, y, pages;\r
+\r
+               /* This is the way to calculate the number of pages available. */\r
+               pages = 65536L/(widthBytes*height); // apparently this takes the A000 address\r
+//             if(height==240) pages++;\r
+\r
+//             printf("%d\n", pages);\r
+\r
+               for (p = 0; p <= pages; ++p)\r
+                               {\r
+                               setActivePage(p);\r
+\r
+                               /* On each page draw a single colored border, and dump the palette\r
+                                  onto a small square about the middle of the page. */\r
+\r
+                                  //{\r
+                                               for (x = 0; x <= width; ++x)\r
+                                                               {\r
+                                                               putPixel_X(x, 0, p+1);\r
+                                                               if(p!=pages) putPixel_X(x, height-1, p+1);\r
+                                                                               else if(height==240) putPixel_X(x, 99-1, p+1);\r
+                                                               }\r
+\r
+                                               for (y = 0; y <= height; ++y)\r
+                                                               {\r
+                                                               putPixel_X(0, y, p+1);\r
+                                                               if(p!=pages) putPixel_X(width-1, y, p+1);\r
+                                                                               else if(height==240) putPixel_X(width-1, y, p+1);\r
+                                                               }\r
+\r
+                                               for (x = 0; x < TILEWH; ++x)\r
+                                                               for (y = 0; y < TILEWH; ++y)\r
+                                                                               putPixel_X(x+(p+2)*16, y+(p+2)*TILEWH, x + y*TILEWH);\r
+                                               //}\r
+\r
+                               }\r
+\r
+               /* Each pages will now contain a different image.  Let the user cycle\r
+                  through all the pages by pressing a key. */\r
+               for (p = 0; p < pages; ++p)\r
+                               {\r
+                               setVisiblePage(p);\r
+                               getch();\r
+                               }\r
+\r
+               }\r
 \r
 /*\r
  * Library test (program) entry point.\r
  */\r
 \r
 int main(void)\r
-                {\r
-                int key,d;\r
-                //short int temp;\r
-                // main variables\r
-                d=1; // switch variable\r
-                key=4; // default screensaver number\r
-//      puts("First, have a look at the 320x200 mode.  I will draw some rubbish");\r
-//      puts("on all of the four pages, then let you cycle through them by");\r
-//      puts("hitting a key on each page.");\r
-//      puts("Press a key when ready...");\r
-//      getch();\r
-\r
-//      doTest();\r
-\r
-//      puts("Then, check out Mode X, 320x240 with 3 (and a half) pages.");\r
-//      puts("Press a key when ready...");\r
-//      getch();\r
+               {\r
+               int key,d,x,y;\r
+               //short int temp;\r
+               // main variables\r
+               d=1; // switch variable\r
+               key=4; // default screensaver number\r
+               x=0;\r
+               y=0;\r
+//       puts("First, have a look at the 320x200 mode.  I will draw some rubbish");\r
+//       puts("on all of the four pages, then let you cycle through them by");\r
+//       puts("hitting a key on each page.");\r
+//       puts("Press a key when ready...");\r
+//       getch();\r
+\r
+//       doTest();\r
+\r
+//       puts("Then, check out Mode X, 320x240 with 3 (and a half) pages.");\r
+//       puts("Press a key when ready...");\r
+//       getch();\r
 \r
 //++++0000\r
-                setvideo(1);\r
-                /*temp = loadfontX("vga8x8.fnt");\r
+               setvideo(1);\r
+               /*temp = loadfontX("vga8x8.fnt");\r
 \r
-                if (temp) {\r
-                        putstringX(0, 0, "bakapi!", 2);\r
-                }\r
-                getch();*/\r
+               if (temp) {\r
+                       putstringX(0, 0, "bakapi!", 2);\r
+               }\r
+               getch();*/\r
 // screen savers\r
 \r
 /*while(d!=0){ // on!\r
-                                if(!kbhit()){ // conditions of screen saver\r
-                                                ding(key);\r
-                                }else{\r
-                                                setvideo(0);\r
-                                                // user imput switch\r
-                                                printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 5 to quit.\n", getch());  // prompt the user\r
-                                                scanf("%d", &key);\r
-                                                //if(key==3){xx=yy=0;} // crazy screen saver wwww\r
-                                                if(key==5) d=0;\r
-                                                setvideo(1);\r
-                                }\r
-                }*/ // else off\r
-                while(!kbhit()){ // conditions of screen saver\r
-                        ding(4);\r
-                }\r
-                //end of screen savers\r
-                doTest();\r
-//              getch();\r
-\r
-                while(!kbhit()){ // conditions of screen saver\r
-                        hScroll(1);\r
-//                      scrolly(1);\r
-//                      vScroll(1);\r
-//                      delay(100);\r
-//                      Play();\r
-                }\r
-//++++0000\r
-                setvideo(0);\r
-                printf("Resolution:\n[%d][%d]\n", width,height);\r
-//              setvideo(0);\r
-//mxTerm();\r
-\r
-//              printf("[%d]\n", mxGetVersion());\r
-                puts("where to next?  It's your move! wwww");\r
-                printf("bakapi ver. 1.04.09.03\nis made by sparky4\81i\81\86\83Ö\81\85\81j feel free to use it ^^\nLicence: GPL v2\n");\r
-                return 0;\r
-                }\r
+                               if(!kbhit()){ // conditions of screen saver\r
+                                               ding(key);\r
+                               }else{\r
+                                               setvideo(0);\r
+                                               // user imput switch\r
+                                               printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 5 to quit.\n", getch());  // prompt the user\r
+                                               scanf("%d", &key);\r
+                                               //if(key==3){xx=yy=0;} // crazy screen saver wwww\r
+                                               if(key==5) d=0;\r
+                                               setvideo(1);\r
+                               }\r
+               }*/ // else off\r
+               while(!kbhit()){ // conditions of screen saver\r
+                       ding(4);\r
+               }\r
+               //end of screen savers\r
+               doTest();\r
+//             getch();\r
+\r
+               while(!kbhit()){ // conditions of screen saver\r
+//                     hScroll(1);\r
+//                     scrolly(1);\r
+//                     vScroll(1);\r
+//                     delay(100);
+                       /*mxSetVirtualScreen(320,240*2);\r
+                       for(int i=0;i<TILEWH;i++){\r
+                               mxPan(x,y);\r
+                               //mxWaitRetrace();\r
+                               y++;\r
+                       }*/
+                       mxSetVirtualScreen(320*2,240);\r
+                       for(int i=0;i<TILEWH;i++){\r
+                               mxPan(x,y);\r
+                               mxWaitRetrace();\r
+                               x++;\r
+                       }
+               //delay(100);\r
+               }\r
+               setvideo(0);\r
+               printf("wwww\n%dx%d\n", width,height);\r
+               printf("[%d]\n", mxGetVersion());\r
+               puts("where to next?  It's your move! wwww");\r
+               printf("bakapi ver. 1.04.09.04\nis made by sparky4\81i\81\86\83Ö\81\85\81j feel free to use it ^^\nLicence: GPL v2\n");\r
+               return 0;\r
+               }\r
 \r
 #endif\r
index 19175b7a8f0b5bd6cf4b7991af11d444b71de9d8..d1b93e434153a84ccd2243ed65b1bfa8af4dd86a 100644 (file)
@@ -27,7 +27,6 @@ LIBOBJS = MXBB.OBJ \
           MXPI.OBJ \\r
           MXPN.OBJ \\r
           MXPP.OBJ \\r
-         MXPT.OBJ \\r
           MXRA.OBJ \\r
           MXRP.OBJ \\r
           MXSA.OBJ \\r
@@ -47,14 +46,14 @@ LIBOBJS = MXBB.OBJ \
 #\r
 # ASM compiler\r
 #\r
-ASMC = JWASMR\r
-ASMO = -Zm -0\r
+ASMC = tasm\r
+ASMO = /m5 /p\r
 \r
 #\r
 # PAS compiler\r
 #\r
-#PASC = bpc\r
-#PASO = /m -$D- -$L- -$S-\r
+PASC = bpc\r
+PASO = /m -$D- -$L- -$S-\r
 \r
 #\r
 # LIB maker, uses response file\r
@@ -64,7 +63,7 @@ LIBC = tlib
 .asm.obj:\r
         $(ASMC) $(ASMO) $<\r
 \r
-target: modex.lib\r
+target: modex.lib
 # modex.tpu modex.tpp\r
 \r
 #modex.tpu: $(LIBOBJS) modex.pas\r
diff --git a/16/lib/x/MODEX.BAK b/16/lib/x/MODEX.BAK
deleted file mode 100644 (file)
index 0069d2e..0000000
Binary files a/16/lib/x/MODEX.BAK and /dev/null differ
index 62111e59364a9d273e5efaa2e386b6fee62e98f2..45bd900fd75f568e59c75c42d698e5760e5d75b7 100644 (file)
@@ -3,8 +3,8 @@
 ; MODEX.DEF - Include file\r
 ; Copyright (c) 1993-1994 by Alessandro Scotti\r
 ;\r
-;JUMPS\r
-;LOCALS\r
+JUMPS\r
+LOCALS\r
 \r
 TRUE            EQU     1       ; Boolean constants\r
 FALSE           EQU     0\r
@@ -155,10 +155,9 @@ ENDM
 \r
 ;------------------------------------------------------------\r
 ;\r
-;.chk386 MACRO   name, jump\r
-;    IF USE386 EQ FALSE\r
-;        .OUT    "Warning: ", <name>, " needs a 386 or better to run!"\r
-;        jmp     @@jump\r
-;    ENDIF\r
-;ENDM\r
-END\r
+.chk386 MACRO   name, jump\r
+    IF USE386 EQ FALSE\r
+        .OUT    "Warning: ", <name>, " needs a 386 or better to run!"\r
+        jmp     @@jump\r
+    ENDIF\r
+ENDM\r
index 71f3dcf7685c42c3bd461b04a3cca23d03c99716..2c1f1ebe5b99d3778271be8356990ef260695587 100644 (file)
@@ -48,7 +48,7 @@
 #define MXBOOL      short int\r
 #define MXSINT      short int\r
 #define MXUINT      unsigned short int\r
-#define MXAPI       far __syscall\r
+#define MXAPI       far pascal\r
 #define MXPTR       void far *\r
 \r
 // Functions\r
index ea682c00f819a68b43f5b8b5851b1735784589c2..ec5c605c0fa7033eb9e9f3020b3dd144b590862e 100644 (file)
Binary files a/16/lib/x/MODEX.LIB and b/16/lib/x/MODEX.LIB differ
diff --git a/16/lib/x/MODEX.OBJ b/16/lib/x/MODEX.OBJ
deleted file mode 100644 (file)
index 7b72fdb..0000000
Binary files a/16/lib/x/MODEX.OBJ and /dev/null differ
index 309c7908bdd37e9b0a8afcb4daf1de365fc8079f..ac6668ce230f264a72a7cfc837e7f948ffa6056f 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxBitBlt\r
index 35d36a75fea3836ee906e9f951551b440aab5f39..16df03e9db303a7c0cbb22d54788118d8b79893f 100644 (file)
Binary files a/16/lib/x/MXBB.OBJ and b/16/lib/x/MXBB.OBJ differ
index 01f553c11029132ec98b9f944d8b3ad5ae0aad73..4f78adb9c6801bf68a9984b08ad2f0902e941472 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  xsubClipLine\r
index 2ac9ef72eba2680f6f3416ae71ea6a31ba78ef1b..fcb14b0060d0537db894966b6f62573dd5ea01d8 100644 (file)
Binary files a/16/lib/x/MXCC.OBJ and b/16/lib/x/MXCC.OBJ differ
index 543d43cbfa9286e882196e3500b02b2b74847d4c..42163d7a8ff8cf1cb49762030895efcde9d7266a 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxColorToGray\r
index 804cdb2ab85cf64c628c9d2f7a13f1695e563a10..86ea2df430b8adf838bdec456bab1d27ef876040 100644 (file)
Binary files a/16/lib/x/MXCG.OBJ and b/16/lib/x/MXCG.OBJ differ
index e2c25360e6ec23cfc8b9cd0c123dcd5d4b92b4d9..aaa0bac3c2d8d68bf3af6202f4dec9a546277a93 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxCircle\r
index 3b9d8c63eba817fa4a708aca42255e5a1c094c66..30e271624c548338c71fa5ccdd7d11bfb347ec7b 100644 (file)
Binary files a/16/lib/x/MXCL.OBJ and b/16/lib/x/MXCL.OBJ differ
index eae529c70988ba5a9edcacc64731710fb407355a..ca1fa7bbf499a8f0771b0a5b905ff95b6da0908e 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxSetSysClipRegion\r
index 7493b93773380952182c43c5a2a416a0cef86eac..d679f61e5bb00c7498bd373ab8dee6741351d27f 100644 (file)
Binary files a/16/lib/x/MXCR.OBJ and b/16/lib/x/MXCR.OBJ differ
index 0341272157167b8e034f791692d12299ebf46687..2c9dda2a341b6dcea662688bb9dcaccc78c9c055 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxEllipse\r
diff --git a/16/lib/x/MXEL.OBJ b/16/lib/x/MXEL.OBJ
deleted file mode 100644 (file)
index 520971c..0000000
Binary files a/16/lib/x/MXEL.OBJ and /dev/null differ
index eaf29144c0d8492f409b8a418a8b62249dbfd9f2..41ea5debe8dd682f110395e2732c9377f6a758c1 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxFillBox\r
index 5474062fa69404703a746c62779227fc9dc79769..3a1d69aac9dc50c0910d74435e83cca6927cc903 100644 (file)
Binary files a/16/lib/x/MXFB.OBJ and b/16/lib/x/MXFB.OBJ differ
index 2b00d2d34ebea7a6bc5f9333aaada655bf7f8952..8eea25beabdb465b70636d6ed2f9b8dc39f4c66a 100644 (file)
@@ -5,7 +5,7 @@
 ; Author: Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxFadePalette\r
index bf2a4769b31a663c2b2fd7c77e812b8479350c52..194fc0d1d0263d7c48c4fc98c432463f1bfad4a6 100644 (file)
Binary files a/16/lib/x/MXFP.OBJ and b/16/lib/x/MXFP.OBJ differ
index 91a9c875c4e3aacbcd9a3e151fe9543fa4a96fa3..85edf7a65ad219c015c633e9ba7261f64de3f064 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxGetColor\r
index 3551d910c8de960cb63747ec9db5f2f768877749..fd30cce065edd57fc3bb6e30d2288b3b34007527 100644 (file)
Binary files a/16/lib/x/MXGC.OBJ and b/16/lib/x/MXGC.OBJ differ
index 9d7c4f87387a9e27b14c07b23372c242695e2912..7037d41130e0e55145f29cc4e50d1d97073417df 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxGetImage\r
index 023e9437f36f5e1c965bf9a20eb6a152ec1ca753..2c664a2254e713bc983489d990862e95be2de93e 100644 (file)
Binary files a/16/lib/x/MXGI.OBJ and b/16/lib/x/MXGI.OBJ differ
index 427026131901d1a3aad72394b00329c8dbac2f57..a67476a0f10b381da67483d7c51f201dc4589588 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxGammaCorrect\r
index 4236c96abbca2d29e5a48724de0d14c0f21e9276..6973c9225e65b038d75ae423a56d9ad87ee819ce 100644 (file)
Binary files a/16/lib/x/MXGM.OBJ and b/16/lib/x/MXGM.OBJ differ
index aa476494839b3c6e337d3503f98361da95a3950a..6c1431730cf4b395ef673ba970503b56b3ee2e00 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxGetPalette\r
index e675df1b924ee92958e753ca31c6aef0b4ec4f56..b9d0048336b89481a4d716b84f12577a7e296a8f 100644 (file)
Binary files a/16/lib/x/MXGP.OBJ and b/16/lib/x/MXGP.OBJ differ
index 3a69b89425a7b2e1b49d756a3c682de179ee6228..2a54b1d0d1999799572d8fd73c3e875feb63a5fd 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxGetVersion\r
index 5e82a43f6fe092da3bbd1035f10de30386487f87..40569cd85764ec57088a32d9ce364b995555b424 100644 (file)
Binary files a/16/lib/x/MXGV.OBJ and b/16/lib/x/MXGV.OBJ differ
index 28a0fd1b145a1558a87a26b72aad5c32ad5d7231..049a05662ee16ac39c982040b82101fa99c60a17 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  subHorizontalLineInfo\r
index b7e250c303c78a840d6374d4e3a4bc65db360298..1574a952334a43265f31243967627c3ac147db03 100644 (file)
Binary files a/16/lib/x/MXHL.OBJ and b/16/lib/x/MXHL.OBJ differ
index 8f1006ddf6f44909adae4d02d5bc125970e2179f..c0d9ceddbfd48926ea758d5f35d6d695a8541842 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxInit\r
index 4ab3ea9206458ffadddc859846693e0071ad90e8..a41c856419f5b588b04cd79c107f59336820badf 100644 (file)
Binary files a/16/lib/x/MXIT.OBJ and b/16/lib/x/MXIT.OBJ differ
index 6a69e29cc22947e0dbe3e476ac8e4bfd7c13c455..34fec0433ef47650a17ce4f19aeac37470f8b9cc 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxLoadLatches\r
index b0c28167245006eaa1bb42e7930ebd530630c9bf..554d52261f8943c0542596a4aff95ace9d70a994 100644 (file)
Binary files a/16/lib/x/MXLL.OBJ and b/16/lib/x/MXLL.OBJ differ
index 07a277fc6ba12db9e39cc83f370a37b5c4cbb671..fbc4ab94bfd86e604f3250d7eda52c41b1615368 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxLine\r
index 2d34c42765a9df03a006750e3bfed4cc73117c73..d163b7111d371a6a5cf79a42b055e07bb0bb01b5 100644 (file)
Binary files a/16/lib/x/MXLN.OBJ and b/16/lib/x/MXLN.OBJ differ
index 3440ffafcea5210d453d4ab2af66268d2f727049..6254766577484741244fe2d417e055d908c34e06 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES                             ; We use the reserved name 'WIDTH'\r
+WARN    PRO\r
+NOWARN  RES                             ; We use the reserved name 'WIDTH'\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxOutChar\r
index 482f5022712d95e0e0886b78f8cc1c5ebbb1c21a..5330d8adbbae0017374047a77bf268d259433d3c 100644 (file)
Binary files a/16/lib/x/MXOT.OBJ and b/16/lib/x/MXOT.OBJ differ
index 170dca2df40044aa5bc998f03d906b41b925480a..8c6aa44949d62626341720505e5b6777866226a6 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mx_ScanBuffer\r
index 17e08ea69a0de7f6310e5782a2a384b5601cf5ee..f573e187b8334f1f4ac143a4eb1503ad3e281412 100644 (file)
Binary files a/16/lib/x/MXPB.OBJ and b/16/lib/x/MXPB.OBJ differ
index f48077d4ac03a90a8dcfeee0d43093d9e9eef3fd..db0da898f8ae912888c9d34bb9931e95b7047b19 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxFillPoly\r
index 4063ea801060704d693a4ed58764901eb406c21d..f27577670c67fb62caba2d6f90b321b73ec88f5a 100644 (file)
Binary files a/16/lib/x/MXPF.OBJ and b/16/lib/x/MXPF.OBJ differ
index c77c7d45167644b882e6036f815546bdb7e03f12..caa7cf1b159c1bfe1ff39a8a0f45b4f25b872c20 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxGouraudPoly\r
index ed04544f3a236ed5cd2948f9db4f1a7109e266c4..edb1615d53346f6874e1450101f903c24ddd3379 100644 (file)
Binary files a/16/lib/x/MXPG.OBJ and b/16/lib/x/MXPG.OBJ differ
index 9e78bbd810801ceac5a94dc6f3253efece29b7a6..9e8525f5ed8c185d0f0b7377d01c1834b425bbc4 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxPutImage\r
index 8f39897ec36d5ee0fca1c8c4e559bde0a1cc8dfc..fc9eba5476ce8d9b75542321a09c9570bd393fb9 100644 (file)
Binary files a/16/lib/x/MXPI.OBJ and b/16/lib/x/MXPI.OBJ differ
index 03517655b6fd592df22e3128fbb6c9a43fedc17e..eaaf61b48cd10bd680e00cdea7a4326f70804af8 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxPan\r
index 27da206dcbc195a65ba0a977357b92802ba8f224..acf3483f52232cf41789c6273a3ba50c30100678 100644 (file)
Binary files a/16/lib/x/MXPN.OBJ and b/16/lib/x/MXPN.OBJ differ
index 37dbc345de279034688f424ab69a63d55a8ddafa..fc1755a3cf549da670f8b1eea6b0a7255f2d3560 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxGetPixel\r
index b1831797ebb87db912c6c9574e639e908bce5cd0..2dee312417c45fc8cc6ccad2facaee1f0e58c755 100644 (file)
Binary files a/16/lib/x/MXPP.OBJ and b/16/lib/x/MXPP.OBJ differ
diff --git a/16/lib/x/MXPT.ASM b/16/lib/x/MXPT.ASM
deleted file mode 100644 (file)
index bc18427..0000000
+++ /dev/null
@@ -1,829 +0,0 @@
-;-----------------------------------------------------------\r
-;\r
-; MXPT.ASM - Convex polygon fill with texture mapping\r
-; Copyright (c) 1994 by Alessandro Scotti\r
-;\r
-;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
-INCLUDE MODEX.DEF\r
-\r
-PUBLIC  mxTexturePoly\r
-\r
-;-----------------------------------------------------------\r
-;\r
-; "Local" definitions\r
-;\r
-TPOINT  STRUC\r
-        X       DW      ?\r
-        Y       DW      ?\r
-TPOINT  ENDS\r
-\r
-; Do NOT change order!\r
-TSCAN   STRUC\r
-        Y1      DW      ?\r
-       IX1     DW      ?\r
-       IY1     DW      ?\r
-        Y2      DW      ?\r
-        IX2     DW      ?\r
-        IY2     DW      ?\r
-TSCAN   ENDS\r
-\r
-MAXSCANCOLUMNS  EQU     POLYSCANBUFSIZE / SIZE TSCAN\r
-\r
-MX_TEXT         SEGMENT USE16 PARA PUBLIC 'CODE'\r
-                ASSUME cs:MX_TEXT, ds:NOTHING, es:NOTHING\r
-\r
-EXTRN   mx_VideoSegment : WORD\r
-EXTRN   mx_CodeSegment  : WORD\r
-EXTRN   mx_BytesPerLine : WORD\r
-EXTRN   mx_ClipX1       : WORD\r
-EXTRN   mx_ClipY1       : WORD\r
-EXTRN   mx_ClipX2       : WORD\r
-EXTRN   mx_ClipY2       : WORD\r
-EXTRN   mx_ScanBuffer   : NEAR\r
-\r
-; Global variables, to optimize allocation of local space\r
-mx_Texture     DD      ?\r
-mx_TextureWidth DW     ?\r
-mx_XStepLo      DW      ?\r
-mx_XStepHi      DW      ?\r
-mx_XBump        DW      ?\r
-mx_YStepLo      DW      ?\r
-mx_YStepHi      DW      ?\r
-mx_YBump        DW      ?\r
-mx_TempX        DW      512 DUP(?)\r
-mx_TempY        DW      512 DUP(?)\r
-\r
-;-----------------------------------------------------------\r
-;\r
-; Scans an edge using the DDA (digital differential analyzer) algorithm.\r
-; Also saves information for the texture scanner.\r
-;\r
-; Input:\r
-;       DS:BX   = pointer to start point (X1, Y1)\r
-;       DS:SI   = pointer to end point (X2, Y2)\r
-;       ES:DI   = pointer to edge buffer\r
-; Output:\r
-;       ES:DI   = updated pointer to edge buffer\r
-;\r
-subScan         PROC NEAR\r
-        mov     cx, ds:[si].X\r
-        sub     cx, ds:[bx].X           ; Get width\r
-        mov     es:[di].IX1, cx         ; Save width\r
-        jg      @@1\r
-        ret\r
-@@1:\r
-        push    bp                      ; Save BP\r
-\r
-        mov     ax, ds:[si].Y\r
-        mov     bx, ds:[bx].Y\r
-        sub     ax, bx                  ; Get height\r
-        jg      @@T2B                   ; Scan top to bottom\r
-        jl      @@B2T                   ; Scan bottom to top\r
-\r
-; Special case: vertical line\r
-        mov     ax, bx\r
-@@V:\r
-        mov     es:[di].Y1, ax\r
-        add     di, SIZE TSCAN\r
-        dec     cx\r
-        jnz     @@V\r
-       jmp     @@Exit\r
-\r
-; Scan top to bottom\r
-@@T2B:\r
-        cwd\r
-        div     cx\r
-        mov     bp, ax\r
-        xor     ax, ax\r
-        div     cx\r
-        xchg    ax, bx                  ; BP:BX = fixed 16:16 step\r
-        mov     dx, 8000h\r
-@@T2BLoop:\r
-        mov     es:[di].Y1, ax\r
-        add     di, SIZE TSCAN\r
-        add     dx, bx\r
-        adc     ax, bp\r
-        dec     cx\r
-        jnz     @@T2BLoop\r
-       jmp     @@Exit\r
-\r
-; Scan bottom to top\r
-@@B2T:\r
-        neg     ax\r
-        cwd\r
-        div     cx\r
-        mov     bp, ax\r
-        xor     ax, ax\r
-        div     cx\r
-        xchg    ax, bx\r
-        mov     dx, 8000h\r
-@@B2TLoop:\r
-        mov     es:[di].Y1, ax\r
-        add     di, SIZE TSCAN\r
-        sub     dx, bx\r
-        sbb     ax, bp\r
-        dec     cx\r
-        jnz     @@B2TLoop\r
-\r
-@@Exit:\r
-        pop     bp\r
-        ret\r
-subScan         ENDP\r
-\r
-;-----------------------------------------------------------\r
-;\r
-; Scans a texture edge.\r
-;\r
-; Input:\r
-;       DS:BX   = pointer to start point (X1, Y1)\r
-;       DS:SI   = pointer to end point (X2, Y2)\r
-;       ES:DI   = pointer to edge buffer\r
-;       CX      = number of steps\r
-; Output:\r
-;       ES:DI   = updated pointer to edge buffer\r
-;\r
-subScanTexture PROC NEAR\r
-       .push   bp\r
-        .push   di, bx, cx              ; Save registers\r
-        mov     ax, ds:[si].X           ; Scan X coordinate first\r
-       mov     bx, ds:[bx].X\r
-       sub     ax, bx\r
-       jg      @@XP                    ; Positive\r
-       jl      @@XN                    ; Negative\r
-\r
-; Special case: constant\r
-@@XCLoop:\r
-       mov     es:[di].IX1, bx\r
-       add     di, SIZE TSCAN\r
-       dec     cx\r
-       jnz     @@XCLoop\r
-       jmp     @@ScanY\r
-\r
-; Increasing step\r
-@@XP:\r
-       cwd\r
-       div     cx\r
-       mov     bp, ax\r
-       xor     ax, ax\r
-       div     cx\r
-       xchg    ax, bx\r
-       mov     dx, 8000h\r
-@@XPLoop:\r
-       mov     es:[di].IX1, ax\r
-        add     di, SIZE TSCAN\r
-        add     dx, bx\r
-        adc     ax, bp\r
-        dec     cx\r
-       jnz     @@XPLoop\r
-       jmp     @@ScanY\r
-\r
-; Decreasing step\r
-@@XN:\r
-        neg     ax\r
-        cwd\r
-        div     cx\r
-        mov     bp, ax\r
-        xor     ax, ax\r
-        div     cx\r
-        xchg    ax, bx\r
-        mov     dx, 8000h\r
-@@XNLoop:\r
-       mov     es:[di].IX1, ax\r
-        add     di, SIZE TSCAN\r
-        sub     dx, bx\r
-        sbb     ax, bp\r
-        dec     cx\r
-       jnz     @@XNLoop\r
-\r
-; Now scan the Y coordinate\r
-@@ScanY:\r
-        .pop    di, bx, cx              ; Restore registers\r
-       mov     ax, ds:[si].Y\r
-       mov     bx, ds:[bx].Y\r
-       sub     ax, bx\r
-       jg      @@YP                    ; Positive\r
-       jl      @@YN                    ; Negative\r
-\r
-; Special case: constant\r
-       mov     ax, cx\r
-@@YCLoop:\r
-       mov     es:[di].IY1, bx\r
-       add     di, SIZE TSCAN\r
-       dec     ax\r
-       jnz     @@YCLoop\r
-       jmp     @@Exit\r
-\r
-; Increasing step\r
-@@YP:\r
-       cwd\r
-       div     cx\r
-       mov     bp, ax\r
-       xor     ax, ax\r
-       div     cx\r
-       xchg    ax, bx\r
-       mov     dx, 8000h\r
-@@YPLoop:\r
-       mov     es:[di].IY1, ax\r
-        add     di, SIZE TSCAN\r
-        add     dx, bx\r
-        adc     ax, bp\r
-        dec     cx\r
-       jnz     @@YPLoop\r
-       jmp     @@Exit\r
-\r
-; Decreasing step\r
-@@YN:\r
-        neg     ax\r
-        cwd\r
-        div     cx\r
-        mov     bp, ax\r
-        xor     ax, ax\r
-        div     cx\r
-        xchg    ax, bx\r
-        mov     dx, 8000h\r
-@@YNLoop:\r
-       mov     es:[di].IY1, ax\r
-        add     di, SIZE TSCAN\r
-        sub     dx, bx\r
-        sbb     ax, bp\r
-        dec     cx\r
-       jnz     @@YNLoop\r
-\r
-@@Exit:\r
-       .pop    bp\r
-        ret\r
-subScanTexture ENDP\r
-\r
-;-----------------------------------------------------------\r
-;\r
-; Fills a scan column with texture.\r
-;\r
-; Input:\r
-;       DS:SI   = current TSCAN\r
-;       ES:DI   = address of top pixel\r
-;       CX      = number of pixels to write\r
-; Output:\r
-;       none\r
-; Notes:\r
-;       must preserve DS:SI, texture info in global variables.\r
-;\r
-subFillScan     PROC NEAR\r
-        ASSUME  ds:NOTHING\r
-        .push   ds, si, bp, cx\r
-\r
-        movzx   ecx, cx                 ; Clear high word of ECX\r
-\r
-        movzx   eax, ds:[si].IX2\r
-        movzx   ebx, ds:[si].IX1\r
-        sub     ax, bx\r
-        jge     @@XP\r
-\r
-;---------------------------------------\r
-; Delta X is negative\r
-@@XN:\r
-        neg     ax                      ; Make AX positive\r
-        shl     eax, 8                  ; Convert 8:8 fixed to 16:16\r
-        cdq\r
-        idiv    ecx\r
-        ror     eax, 16\r
-        mov     ebp, eax                ; Save X step into EBP\r
-\r
-        movzx   eax, ds:[si].IY2\r
-        movzx   esi, ds:[si].IY1\r
-        sub     ax, si\r
-        jge     @@XNYP\r
-\r
-;-----------------------\r
-; DeltaX < 0, DeltaY < 0\r
-@@XNYN:\r
-        neg     ax\r
-        shl     eax, 8\r
-        cdq\r
-        idiv    ecx\r
-        ror     eax, 16\r
-        mov     dx, [mx_TextureWidth]\r
-        mul     dl\r
-        xchg    eax, esi                ; ESI = Y step\r
-        ror     eax, 8\r
-        mul     dl\r
-        ror     ebx, 8\r
-        add     bx, ax                  ; BX = start offset in texture\r
-        lds     dx, [mx_Texture]\r
-        movzx   edx, dx\r
-        add     edx, ebx                ; EDX = X step lo:texture offset\r
-        xchg    edx, esi                ; EDX = Y step\r
-@@XNYNLoop:\r
-        dec     cx\r
-        jl      @@XNYNDone\r
-        movzx   ax, ds:[si]\r
-        mov     es:[di], al\r
-        add     di, [mx_BytesPerLine]\r
-        sub     esi, ebp\r
-        sbb     si, 0\r
-        sub     si, dx\r
-        sub     eax, edx\r
-        jnc     @@XNYNLoop\r
-        sub     si, [mx_TextureWidth]\r
-        jmp     @@XNYNLoop\r
-@@XNYNDone:\r
-        jmp     @@Exit\r
-\r
-;-----------------------\r
-; DeltaX < 0, DeltaY > 0\r
-@@XNYP:\r
-        shl     eax, 8\r
-        cdq\r
-        idiv    ecx\r
-        ror     eax, 16\r
-        mov     dx, [mx_TextureWidth]\r
-        mul     dl\r
-        xchg    eax, esi                ; ESI = Y step\r
-        ror     eax, 8\r
-        mul     dl\r
-        ror     ebx, 8\r
-        add     bx, ax                  ; BX = start offset in texture\r
-        lds     dx, [mx_Texture]\r
-        movzx   edx, dx\r
-        add     edx, ebx                ; EDX = X step lo:texture offset\r
-        xchg    edx, esi                ; EDX = Y step\r
-@@XNYPLoop:\r
-        dec     cx\r
-        jl      @@XNYPDone\r
-        movzx   ax, ds:[si]\r
-        mov     es:[di], al\r
-        add     di, [mx_BytesPerLine]\r
-        sub     esi, ebp\r
-        sbb     si, 0\r
-        add     si, dx\r
-        add     eax, edx\r
-        jnc     @@XNYPLoop\r
-        add     si, [mx_TextureWidth]\r
-        jmp     @@XNYPLoop\r
-@@XNYPDone:\r
-        jmp     @@Exit\r
-\r
-;---------------------------------------\r
-; Delta X is positive\r
-@@XP:\r
-        shl     eax, 8                  ; Convert 8:8 fixed to 16:16\r
-        cdq\r
-        idiv    ecx\r
-        ror     eax, 16\r
-        mov     ebp, eax                ; Save X step into EBP\r
-\r
-        movzx   eax, ds:[si].IY2\r
-        movzx   esi, ds:[si].IY1\r
-        sub     ax, si\r
-        jge     @@XPYP\r
-\r
-;-----------------------\r
-; DeltaX > 0, DeltaY < 0\r
-@@XPYN:\r
-        neg     ax\r
-        shl     eax, 8\r
-        cdq\r
-        idiv    ecx\r
-        ror     eax, 16\r
-        mov     dx, [mx_TextureWidth]\r
-        mul     dl\r
-        xchg    eax, esi                ; ESI = Y step\r
-        ror     eax, 8\r
-        mul     dl\r
-        ror     ebx, 8\r
-        add     bx, ax                  ; BX = start offset in texture\r
-        lds     dx, [mx_Texture]\r
-        movzx   edx, dx\r
-        add     edx, ebx                ; EDX = X step lo:texture offset\r
-        xchg    edx, esi                ; EDX = Y step\r
-@@XPYNLoop:\r
-        dec     cx\r
-        jl      @@XPYNDone\r
-        movzx   ax, ds:[si]\r
-        mov     es:[di], al\r
-        add     di, [mx_BytesPerLine]\r
-        add     esi, ebp\r
-        adc     si, 0\r
-        sub     si, dx\r
-        sub     eax, edx\r
-        jnc     @@XPYNLoop\r
-        sub     si, [mx_TextureWidth]\r
-        jmp     @@XPYNLoop\r
-@@XPYNDone:\r
-        jmp     @@Exit\r
-\r
-;-----------------------\r
-; DeltaX > 0, DeltaY > 0\r
-@@XPYP:\r
-        shl     eax, 8\r
-        cdq\r
-        idiv    ecx\r
-        ror     eax, 16\r
-        mov     dx, [mx_TextureWidth]\r
-        mul     dl\r
-        xchg    eax, esi                ; ESI = Y step\r
-        ror     eax, 8\r
-        mul     dl\r
-        ror     ebx, 8\r
-        add     bx, ax                  ; BX = start offset in texture\r
-        lds     dx, [mx_Texture]\r
-        movzx   edx, dx\r
-        add     edx, ebx                ; EDX = X step lo:texture offset\r
-        xchg    edx, esi                ; EDX = Y step\r
-@@XPYPLoop:\r
-        dec     cx\r
-        jl      @@XPYPDone\r
-        movzx   ax, ds:[si]\r
-        mov     es:[di], al\r
-        add     di, [mx_BytesPerLine]\r
-        add     esi, ebp\r
-        adc     si, 0\r
-        add     si, dx\r
-        add     eax, edx\r
-        jnc     @@XPYPLoop\r
-        add     si, [mx_TextureWidth]\r
-        jmp     @@XPYPLoop\r
-@@XPYPDone:\r
-        jmp     @@Exit\r
-\r
-@@Exit:\r
-        .pop    ds, si, bp, cx\r
-        ASSUME  ds:NOTHING\r
-        ret\r
-subFillScan     ENDP\r
-\r
-;-----------------------------------------------------------\r
-;\r
-; Fills a convex polygon with the specified color.\r
-; Interpolates pixel colors using the Gouraud algorithm.\r
-;\r
-; Input:\r
-;       Count   = number of vertexes\r
-;       Map     = indexes of points and colors (integer)\r
-;       Points  = array of points (integer X, Y coordinates)\r
-;      TPoints = array of points inside texture (fixed 8:8 coordinates)\r
-;      Texture = pointer to texture image\r
-;      TWidth  = texture width in pixels\r
-; Output:\r
-;       none\r
-; Notes:\r
-;       vertexes must be in counterclockwise order, arrays are 0-based.\r
-;\r
-mxTexturePoly  PROC FAR\r
-        ARG     TWidth:WORD,    \\r
-               Texture:DWORD,  \\r
-               TPoints:DWORD,  \\r
-                Points:DWORD,   \\r
-                Map:DWORD,      \\r
-                Count:WORD      = ARG_SIZE\r
-        LOCAL   WritePlane:BYTE:2,      \\r
-                ScanOffsetT:WORD,       \\r
-                ScanOffsetB:WORD,       \\r
-                ScanCount:WORD,         \\r
-                Holder:WORD,            \\r
-                Height:WORD,            \\r
-                MinIdxT:WORD,           \\r
-                MinIdxB:WORD,           \\r
-               MaxIdx:WORD,            \\r
-                Width:WORD,             \\r
-                BoxX1:WORD,             \\r
-                BoxY1:WORD,             \\r
-                BoxX2:WORD,             \\r
-                BoxY2::WORD             = AUTO_SIZE\r
-        .enter  AUTO_SIZE\r
-        .push   ds, si, es, di\r
-        ASSUME  ds:NOTHING\r
-\r
-IF USE386 EQ FALSE\r
-        jmp     @@Exit\r
-ENDIF\r
-\r
-; Check that at least three vertexes are specified\r
-        mov     cx, [Count]\r
-        cmp     cx, 3\r
-        jb      @@Exit\r
-\r
-;------------------------------\r
-; Find bounding box for polygon\r
-        les     di, [Map]               ; Point to map table\r
-        lds     si, [Points]            ; Point to vertex array\r
-        mov     [BoxX1], 32767\r
-        mov     [BoxX2], -32768\r
-        mov     [BoxY1], 32767\r
-        mov     [BoxY2], -32768\r
-\r
-        xor     dx, dx\r
-@@MinMaxLoop:\r
-        mov     bx, es:[di]             ; Get index of vertex\r
-        .shl    bx, 2                   ; Get offset in point array\r
-        add     bx, si\r
-\r
-; Check X range\r
-@@CheckMinX:\r
-        mov     ax, ds:[bx].X           ; Get X coordinate\r
-        cmp     ax, [BoxX1]\r
-        jge     @@CheckMaxX\r
-        mov     [BoxX1], ax\r
-        mov     [MinIdxT], dx\r
-        mov     [MinIdxB], dx\r
-@@CheckMaxX:\r
-        cmp     ax, [BoxX2]\r
-        jle     @@CheckMinY\r
-        mov     [BoxX2], ax\r
-       mov     [MaxIdx], dx\r
-\r
-; Check Y range\r
-@@CheckMinY:\r
-        mov     ax, ds:[bx].Y\r
-        cmp     ax, [BoxY1]\r
-        jge     @@CheckMaxY\r
-        mov     [BoxY1], ax\r
-@@CheckMaxY:\r
-        cmp     ax, [BoxY2]\r
-        jle     @@CheckDone\r
-        mov     [BoxY2], ax\r
-\r
-; Repeat thru all points\r
-@@CheckDone:\r
-        add     di, 2                   ; Next map entry\r
-        add     dx, 2\r
-        dec     cx\r
-        jnz     @@MinMaxLoop\r
-\r
-;---------------------------------\r
-; Check if polygon is full clipped\r
-        mov     ax, [BoxX2]\r
-        cmp     ax, [mx_ClipX1]         ; Is poly full clipped?\r
-        jl      @@Exit\r
-        mov     bx, [BoxX1]\r
-        cmp     bx, [mx_ClipX2]         ; Is poly full clipped?\r
-        jg      @@Exit\r
-        sub     ax, bx                  ; Get width\r
-        jle     @@Exit                  ; Exit if not positive\r
-        mov     ax, [BoxY2]\r
-        cmp     ax, [mx_ClipY1]         ; Is poly full clipped?\r
-        jl      @@Exit\r
-        mov     bx, [BoxY1]\r
-        cmp     bx, [mx_ClipY2]         ; Is poly full clipped?\r
-        jg      @@Exit\r
-        sub     ax, bx                  ; Get height\r
-        jle     @@Exit                  ; Exit if not positive\r
-\r
-       dec     [Count]\r
-        shl     [Count], 1              ; We'll work with word offsets\r
-\r
-;----------------------\r
-; Scan top polygon edge\r
-        mov     es, [mx_CodeSegment]\r
-       mov     di, OFFSET mx_ScanBuffer\r
-       mov     si, [MinIdxT]           ; Offset of top point index\r
-@@STLoop:\r
-        mov     dx, si\r
-        lds     bx, [Map]               ; DS:BX -> map table\r
-       mov     ax, ds:[bx+si]          ; Index of top point #1\r
-        dec     si                      ; Next top point\r
-        dec     si\r
-        test    si, si\r
-        jns     @@ST1\r
-        mov     si, [Count]\r
-@@ST1:\r
-       mov     [MinIdxT], si           ; Save new index of bottom point\r
-        mov     cx, si\r
-       mov     si, ds:[bx+si]          ; Get index of top point #2\r
-       .shl    ax, 2                   ; Convert indexes to offsets\r
-       .shl    si, 2\r
-        shl     cx, 1                   ; Save map points\r
-        shl     dx, 1\r
-        mov     dh, cl\r
-        mov     es:[di].IY1, dx\r
-       lds     bx, [Points]            ; Get pointer to vertexes\r
-       add     si, bx\r
-       add     bx, ax\r
-       call    subScan                 ; Scan poly top edge\r
-       mov     si, [MinIdxT]\r
-       cmp     si, [MaxIdx]            ; Reached last vertex?\r
-       jne     @@STLoop                ; No, continue\r
-        mov     es:[di].IX1, -1         ; Mark end of scan\r
-\r
-;-------------------------\r
-; Scan bottom polygon edge\r
-       mov     di, OFFSET mx_ScanBuffer + OFFSET Y2\r
-       mov     si, [MinIdxB]\r
-@@SBLoop:\r
-        mov     dx, si\r
-        lds     bx, [Map]               ; DS:BX -> map table\r
-       mov     ax, ds:[bx+si]          ; Index of bottom point #1\r
-        inc     si                      ; Next bottom point\r
-        inc     si\r
-        cmp     si, [Count]\r
-        jbe     @@SB1\r
-        xor     si, si\r
-@@SB1:\r
-       mov     [MinIdxB], si           ; Save new index of bottom point\r
-        mov     cx, si\r
-        mov     si, ds:[bx+si]          ; Get index of bottom point #2\r
-       .shl    ax, 2                   ; Convert indexes to offsets\r
-       .shl    si, 2\r
-        shl     cx, 1                   ; Save map points\r
-        shl     dx, 1\r
-        mov     dh, cl\r
-        mov     es:[di].IY1, dx\r
-        lds     bx, [Points]            ; Get pointer to vertexes\r
-       add     si, bx\r
-       add     bx, ax\r
-       call    subScan                 ; Scan poly bottom edge\r
-       mov     si, [MinIdxB]\r
-       cmp     si, [MaxIdx]            ; Reached last vertex?\r
-       jne     @@SBLoop                ; No, continue\r
-        mov     es:[di].IX1, -1         ; Mark end of scan\r
-\r
-;----------------------\r
-; Scan top texture edge\r
-       mov     di, OFFSET mx_ScanBuffer\r
-        mov     ds, WORD PTR [TPoints][2]\r
-@@TTLoop:\r
-        mov     cx, es:[di].IX1\r
-        test    cx, cx\r
-        jle     @@TTDone\r
-        mov     ax, es:[di].IY1\r
-        mov     dl, ah\r
-        xor     ah, ah\r
-        xor     dh, dh\r
-        mov     si, dx\r
-        mov     bx, WORD PTR [TPoints][0]\r
-       add     si, bx\r
-       add     bx, ax\r
-       call    subScanTexture          ; Scan texture top edge\r
-        jmp     @@TTLoop\r
-@@TTDone:\r
-\r
-;-------------------------\r
-; Scan bottom texture edge\r
-       mov     di, OFFSET mx_ScanBuffer + OFFSET Y2\r
-@@TBLoop:\r
-        mov     cx, es:[di].IX1\r
-        test    cx, cx\r
-        jle     @@TBDone\r
-        mov     ax, es:[di].IY1\r
-        mov     dl, ah\r
-        xor     ah, ah\r
-        xor     dh, dh\r
-        mov     si, dx\r
-        mov     bx, WORD PTR [TPoints][0]\r
-       add     si, bx\r
-       add     bx, ax\r
-       call    subScanTexture          ; Scan texture top edge\r
-        jmp     @@TBLoop\r
-@@TBDone:\r
-\r
-;--------------------\r
-; Clip left and right\r
-        mov     si, OFFSET mx_ScanBuffer\r
-        mov     ax, [BoxX1]\r
-        mov     cx, [BoxX2]\r
-        sub     cx, ax\r
-        mov     bx, [mx_ClipX1]         ; CX = bounding box width\r
-        sub     bx, ax\r
-        jle     @@ClipL1                ; No need to clip left\r
-        sub     cx, bx\r
-        add     ax, bx                  ; BoxX1 = mx_ClipX1\r
-        mov     [BoxX1], ax\r
-        .shl    bx, 2                   ; Warning!!! This is an hand-coded\r
-        add     si, bx                  ; multiply by the size of TSCAN\r
-        shl     bx, 1\r
-        add     si, bx\r
-@@ClipL1:\r
-        mov     bx, ax\r
-        add     bx, cx                  ; Last scan column\r
-        sub     bx, [mx_ClipX2]\r
-        jle     @@ClipL2                ; No need to clip right\r
-        sub     cx, bx                  ; Clip right\r
-@@ClipL2:\r
-        test    cx, cx                  ; Is clipped width positive?\r
-        jle     @@Exit                  ; No, exit\r
-        mov     [ScanCount], cx         ; Save number of columns to draw\r
-        mov     [ScanOffsetT], si       ; Remember offset of (clipped) buffer\r
-        mov     ds, [mx_CodeSegment]    ; DS:SI -> scan buffer\r
-\r
-;------------------------------\r
-; Check if Y clipping is needed\r
-        mov     ax, [BoxY1]\r
-        cmp     ax, [mx_ClipY1]\r
-        jl      @@ClipTB                ; Need to clip top\r
-        mov     ax, [BoxY2]\r
-        cmp     ax, [mx_ClipY2]\r
-        jg      @@ClipTB                ; Need to clip bottom\r
-        jmp     @@ClipYExit             ; Skip Y clipping\r
-\r
-;--------------------\r
-; Clip top and bottom\r
-@@ClipTB:\r
-        mov     di, cx                  ; DI = scan count\r
-        inc     di                      ; Increment count for pre-loop test\r
-        sub     si, SIZE TSCAN\r
-@@ClipYLoop:\r
-        dec     di                      ; Any column left?\r
-        jz      @@ClipYExit             ; No, exit\r
-        add     si, SIZE TSCAN\r
-        mov     ax, ds:[si].Y1          ; Y1\r
-        mov     cx, ds:[si].Y2          ; Y2\r
-        mov     dx, [mx_ClipY2]\r
-        cmp     ax, dx                  ; Full clipped?\r
-        jg      @@ClipYClip             ; Yes, skip this column\r
-        cmp     cx, dx                  ; Need to clip bottom?\r
-        jle     @@ClipY1                ; No, continue\r
-; Clip bottom, update texture too\r
-        mov     ds:[si].Y2, dx\r
-        mov     bx, cx\r
-        sub     bx, dx                  ; Number of pixels to clip\r
-        sub     cx, ax                  ; Height\r
-        jle     @@ClipYClip\r
-        mov     ax, ds:[si].IX1         ; Update texture\r
-        sub     ax, ds:[si].IX2\r
-        imul    bx\r
-        idiv    cx\r
-        add     ds:[si].IX2, ax\r
-        mov     ax, ds:[si].IY1\r
-        sub     ax, ds:[si].IY2\r
-        imul    bx\r
-        idiv    cx\r
-        add     ds:[si].IY2, ax\r
-        mov     ax, ds:[si].Y1          ; Reload coordinates\r
-        mov     cx, ds:[si].Y2          ;\r
-@@ClipY1:\r
-        mov     dx, [mx_ClipY1]\r
-        cmp     cx, dx                  ; Full top clipped?\r
-        jl      @@ClipYClip             ; Yes, skip\r
-        sub     cx, ax                  ; Get height\r
-        jle     @@ClipYClip             ; Skip if not positive\r
-        cmp     ax, dx                  ; Need to clip top?\r
-        jge     @@ClipYLoop             ; No, continue\r
-; Clip top, update texture too\r
-        mov     ds:[si].Y1, dx          ; Y1 = mx_ClipY1\r
-        sub     dx, ax                  ; DX = number of pixels clipped\r
-        cmp     cx, dx\r
-        jbe     @@ClipYClip             ; Full clipped, skip\r
-        mov     bx, dx                  ; Save pixel count\r
-        mov     ax, ds:[si].IX2\r
-        sub     ax, ds:[si].IX1\r
-        imul    bx\r
-        idiv    cx\r
-        add     ds:[si].IX1, ax\r
-        mov     ax, ds:[si].IY2\r
-        sub     ax, ds:[si].IY1\r
-        imul    bx\r
-        idiv    cx\r
-        add     ds:[si].IY1, ax\r
-        jmp     @@ClipYLoop\r
-@@ClipYClip:\r
-        mov     ds:[si].Y1, -1          ; Mark column as clipped\r
-        jmp     @@ClipYLoop\r
-@@ClipYExit:\r
-\r
-;-------------\r
-; Draw columns\r
-        mov     es, [mx_VideoSegment]\r
-        mov     ax, [TWidth]\r
-        mov     ds:[mx_TextureWidth], ax\r
-        mov     ax, WORD PTR [Texture][0]\r
-        mov     dx, WORD PTR [Texture][2]\r
-        mov     WORD PTR ds:[mx_Texture][0], ax\r
-        mov     WORD PTR ds:[mx_Texture][2], dx\r
-        mov     si, [ScanOffsetT]\r
-        mov     cl, BYTE PTR [BoxX1]    ; Init write plane\r
-        and     cl, 03h\r
-        mov     al, 11h\r
-        shl     al, cl\r
-        mov     [WritePlane], al\r
-        .shr    [BoxX1], 2\r
-@@DrawLoop:\r
-        mov     ax, ds:[si].Y1\r
-        test    ax, ax                  ; Was column clipped?\r
-        js      @@DrawNext              ; Yes, skip\r
-        mov     cx, ds:[si].Y2\r
-        sub     cx, ax                  ; CX = height\r
-        jle     @@DrawNext\r
-        mul     [mx_BytesPerLine]       ; Get pixel address\r
-        add     ax, [BoxX1]\r
-        mov     di, ax\r
-        mov     ah, [WritePlane]\r
-        mov     al, 02h\r
-        mov     dx, TS\r
-        out     dx, ax\r
-        call    subFillScan\r
-@@DrawNext:\r
-        rol     [WritePlane], 1\r
-        adc     [BoxX1], 0              ; Bump pointer to video memory if needed\r
-        add     si, SIZE TSCAN\r
-        dec     [ScanCount]\r
-        jnz     @@DrawLoop\r
-\r
-@@Exit:\r
-        xor     ax, ax\r
-        .pop    ds, si, es, di\r
-        .leave  ARG_SIZE\r
-mxTexturePoly  ENDP\r
-\r
-MX_TEXT         ENDS\r
-END\r
diff --git a/16/lib/x/MXPT.OBJ b/16/lib/x/MXPT.OBJ
deleted file mode 100644 (file)
index 5535ce3..0000000
Binary files a/16/lib/x/MXPT.OBJ and /dev/null differ
index 90ccea78744d41218bd89a5edee8e0eda6371bd7..dd8e6839cce046642c8692abb20a6d8f83a5012c 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxRowAddress\r
index a45dd5590dc5367e5e59ed595c323352bc5be934..97470e671026b4d492c805fa36030b1cfe775559 100644 (file)
Binary files a/16/lib/x/MXRA.OBJ and b/16/lib/x/MXRA.OBJ differ
index 712338f55ee77a833128e8aeed190452ac4b902c..de820c16e37090cb4c256a4202603f8de72ef3c5 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxRotatePalette\r
index 543b77811eea9bf9fef98e0b9984277daf318d5d..f5161bdebe96a7aad0527682b3628e91341c0d61 100644 (file)
Binary files a/16/lib/x/MXRP.OBJ and b/16/lib/x/MXRP.OBJ differ
index 122cfb2180fce9eab6ee90a008b8e24d4a58ef9e..3ebae67da189289754db7c8c0a6b31239f0b098f 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxStartAddress\r
index fcf28d08863404fd72a65f6168ba3ef70076b48d..88cde04f9e91734863e000d7a55c22fa5987df9d 100644 (file)
Binary files a/16/lib/x/MXSA.OBJ and b/16/lib/x/MXSA.OBJ differ
index 1df0466107fdc689dbe8c197e8cba75e838c5c84..bcae45e6239bdfb0ebb5d59865860681a61b276c 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxSetColor\r
index acb3233146abd7157f39b98c524e78a1767f92d0..95ae7fc259df7f2c083012e0b2c5c950ccd71414 100644 (file)
Binary files a/16/lib/x/MXSC.OBJ and b/16/lib/x/MXSC.OBJ differ
index 9964d47323dcc1a66223515be25dc5607f3e6df9..b88d3b1121d1bc6f3d8559889de75390b4f73215 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxStretchImage\r
index 3d0ab0ac760a52fad7eb0e90bd08e6e415c4a312..3d0d3b2923a0548a3a101357fa8c6eb99ae39ab6 100644 (file)
Binary files a/16/lib/x/MXSI.OBJ and b/16/lib/x/MXSI.OBJ differ
index 3eafeb1c5580c817b0c50308dc39f6b70c6a49af..d79088553322fd62a48ba53e8ecc6243c6298eef 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxStartLine\r
index 911808be38622008e814660f633bcfae848b6852..51017daed095e1592dacf00a313a19b86c5103ce 100644 (file)
Binary files a/16/lib/x/MXSL.OBJ and b/16/lib/x/MXSL.OBJ differ
index 65d337109dbfe615ce88e9927f5a418720a7d8c0..183fba1eaf7befa9939879d7a0b1b8c005a974eb 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxChangeMode\r
index dc069e7ef5c914f8eb344ddb420f0ee75c6f82bc..63c8eee2f9c87ad03c82cc516295fa782a3eaad9 100644 (file)
Binary files a/16/lib/x/MXSM.OBJ and b/16/lib/x/MXSM.OBJ differ
index 0b692c7c22284cc97cefe3d4457e543c36a79c9e..1d08e711ecada82de9f1d47d99291576268c37df 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxSetPalette\r
index afe4985bec1eb825ea5c94bd3f10ce4b6508bc1c..4a5dcc22d7487daae1acba810bdc7686b11b7b15 100644 (file)
Binary files a/16/lib/x/MXSP.OBJ and b/16/lib/x/MXSP.OBJ differ
index baca87c8752606a85579ecb87a1b205a562962e5..97df7366301b887f95cf26036219e8cbd446cdb3 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxSplitScreen\r
index 4963c96ffbadea8c00b23d647ca9271227818635..428b7e88ab78499c1f22aaa480e9c7ceef7d2db5 100644 (file)
Binary files a/16/lib/x/MXSS.OBJ and b/16/lib/x/MXSS.OBJ differ
index 5d9b8b89a220c0e480aaed9d0500e7f9b3d43efa..69900c8898fa492114ea5053a6419cc4af36edb4 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxPutTile\r
index b914c84c530fe64e6162752d03f3b190d1001984..68d0ac4b10938ddd4428993c30b814f6d96143b7 100644 (file)
Binary files a/16/lib/x/MXTL.OBJ and b/16/lib/x/MXTL.OBJ differ
index 3791b4cc915299f34da8acb5d0cf3447fa09a5df..992eababcfd2092e5f4de24c6d2b1dd24ec6f146 100644 (file)
@@ -4,8 +4,8 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
-;NOWARN  RES\r
+WARN    PRO\r
+NOWARN  RES\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxSetVirtualScreen\r
index 4bf0b4d469a1e705b1d4a0850fd5549d2829c651..996060c1abc3a9fa82a651ad4892f4a8e92aecc8 100644 (file)
Binary files a/16/lib/x/MXVS.OBJ and b/16/lib/x/MXVS.OBJ differ
diff --git a/16/lib/x/MXVS~1.OBJ b/16/lib/x/MXVS~1.OBJ
deleted file mode 100644 (file)
index ac8b6e6..0000000
Binary files a/16/lib/x/MXVS~1.OBJ and /dev/null differ
index 2013aae566177e6783d2528c422955907a9e2da4..de55208f3720dbcfe6b281f948dad18c11986b1b 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxWaitDisplay\r
index 71c326922b4333977f938eb25e8f902e0f536da3..1adaaaead938d324b5e7299a2cdb07790df2b76a 100644 (file)
Binary files a/16/lib/x/MXWD.OBJ and b/16/lib/x/MXWD.OBJ differ
index 64c7ee48fc6ebf810bc826902c4ca44fed91b3a2..061588592c45345a0e23fed1df38f5c47b5f085f 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxWriteMode\r
index 2bd367841a603e1cea0e0476ac3083a4a6ace40e..875e6d784f867e39efbc2cb4c4178c27fac22a42 100644 (file)
Binary files a/16/lib/x/MXWM.OBJ and b/16/lib/x/MXWM.OBJ differ
index e4175ce08c2ab80c174ecedf9da80c84f889fbe5..19ca99d0664613cf8bb0918e31fa04140086d40a 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxWritePlane\r
index 2d6b03c97048c8b4743069a402fab7ae4311c13b..9df95b9179a3ff97fba1fab5a14195ce67f38da7 100644 (file)
Binary files a/16/lib/x/MXWP.OBJ and b/16/lib/x/MXWP.OBJ differ
index 706ece28b6ea3bc777020a82abf23ff2f989f8b7..bd29fe59db5becb630dcac0fc35de1ba679e36ad 100644 (file)
@@ -4,7 +4,7 @@
 ; Copyright (c) 1993,1994 by Alessandro Scotti\r
 ;\r
 ;-----------------------------------------------------------\r
-;WARN    PRO\r
+WARN    PRO\r
 INCLUDE MODEX.DEF\r
 \r
 PUBLIC  mxWaitRetrace\r
index 87221784f3bc052cf5a159d68574526342312d7d..463abcdafffa81e13d30a94bda519edf8d26c58a 100644 (file)
Binary files a/16/lib/x/MXWR.OBJ and b/16/lib/x/MXWR.OBJ differ
diff --git a/16/lib/x/compile.bat b/16/lib/x/compile.bat
deleted file mode 100644 (file)
index c527580..0000000
+++ /dev/null
@@ -1 +0,0 @@
-jwasmr -0 -Zm *.asm
\ No newline at end of file
diff --git a/16/lib/x/modex.bak b/16/lib/x/modex.bak
deleted file mode 100644 (file)
index 0069d2e..0000000
Binary files a/16/lib/x/modex.bak and /dev/null differ
diff --git a/16/lib/x/modex.lb1 b/16/lib/x/modex.lb1
deleted file mode 100644 (file)
index 0084fdf..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-+'MXBB.obj'\r
-+'MXCC.obj'\r
-+'MXCG.obj'\r
-+'MXCL.obj'\r
-+'MXCR.obj'\r
-+'MXEL.obj'\r
-+'MXFB.obj'\r
-+'MXFP.obj'\r
-+'MXGC.obj'\r
-+'MXGI.obj'\r
-+'MXGM.obj'\r
-+'MXGP.obj'\r
-+'MXGV.obj'\r
-+'MXHL.obj'\r
-+'MXIT.obj'\r
-+'MXLL.obj'\r
-+'MXLN.obj'\r
-+'MXOT.obj'\r
-+'MXPB.obj'\r
-+'MXPF.obj'\r
-+'MXPG.obj'\r
-+'MXPI.obj'\r
-+'MXPN.obj'\r
-+'MXPP.obj'\r
-+'MXPT.obj'\r
-+'MXRA.obj'\r
-+'MXRP.obj'\r
-+'MXSA.obj'\r
-+'MXSC.obj'\r
-+'MXSI.obj'\r
-+'MXSL.obj'\r
-+'MXSM.obj'\r
-+'MXSP.obj'\r
-+'MXSS.obj'\r
-+'MXTL.obj'\r
-+'MXVS.obj'\r
-+'MXWD.obj'\r
-+'MXWM.obj'\r
-+'MXWP.obj'\r
-+'MXWR.obj'\r
diff --git a/16/lib/x/modex.lib b/16/lib/x/modex.lib
deleted file mode 100644 (file)
index ea682c0..0000000
Binary files a/16/lib/x/modex.lib and /dev/null differ
diff --git a/16/lib/x/modex.mk b/16/lib/x/modex.mk
deleted file mode 100644 (file)
index 9ba3a13..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-project : C:\z\16\16\lib\x\modex.lib .SYMBOLIC\r
-\r
-!include C:\z\16\16\lib\x\modex.mk1\r
diff --git a/16/lib/x/modex.mk1 b/16/lib/x/modex.mk1
deleted file mode 100644 (file)
index 88f8bf4..0000000
+++ /dev/null
@@ -1,236 +0,0 @@
-!define BLANK ""\r
-C:\z\16\16\lib\x\MXBB.obj : C:\z\16\16\lib\x\MXBB.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXBB.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXCC.obj : C:\z\16\16\lib\x\MXCC.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXCC.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXCG.obj : C:\z\16\16\lib\x\MXCG.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXCG.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXCL.obj : C:\z\16\16\lib\x\MXCL.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXCL.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXCR.obj : C:\z\16\16\lib\x\MXCR.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXCR.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXEL.obj : C:\z\16\16\lib\x\MXEL.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXEL.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXFB.obj : C:\z\16\16\lib\x\MXFB.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXFB.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXFP.obj : C:\z\16\16\lib\x\MXFP.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXFP.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXGC.obj : C:\z\16\16\lib\x\MXGC.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXGC.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXGI.obj : C:\z\16\16\lib\x\MXGI.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXGI.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXGM.obj : C:\z\16\16\lib\x\MXGM.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXGM.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXGP.obj : C:\z\16\16\lib\x\MXGP.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXGP.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXGV.obj : C:\z\16\16\lib\x\MXGV.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXGV.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXHL.obj : C:\z\16\16\lib\x\MXHL.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXHL.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXIT.obj : C:\z\16\16\lib\x\MXIT.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXIT.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXLL.obj : C:\z\16\16\lib\x\MXLL.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXLL.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXLN.obj : C:\z\16\16\lib\x\MXLN.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXLN.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXOT.obj : C:\z\16\16\lib\x\MXOT.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXOT.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXPB.obj : C:\z\16\16\lib\x\MXPB.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXPB.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXPF.obj : C:\z\16\16\lib\x\MXPF.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXPF.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXPG.obj : C:\z\16\16\lib\x\MXPG.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXPG.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXPI.obj : C:\z\16\16\lib\x\MXPI.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXPI.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXPN.obj : C:\z\16\16\lib\x\MXPN.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXPN.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXPP.obj : C:\z\16\16\lib\x\MXPP.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXPP.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXPT.obj : C:\z\16\16\lib\x\MXPT.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXPT.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXRA.obj : C:\z\16\16\lib\x\MXRA.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXRA.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXRP.obj : C:\z\16\16\lib\x\MXRP.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXRP.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXSA.obj : C:\z\16\16\lib\x\MXSA.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXSA.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXSC.obj : C:\z\16\16\lib\x\MXSC.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXSC.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXSI.obj : C:\z\16\16\lib\x\MXSI.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXSI.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXSL.obj : C:\z\16\16\lib\x\MXSL.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXSL.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXSM.obj : C:\z\16\16\lib\x\MXSM.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXSM.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXSP.obj : C:\z\16\16\lib\x\MXSP.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXSP.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXSS.obj : C:\z\16\16\lib\x\MXSS.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXSS.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXTL.obj : C:\z\16\16\lib\x\MXTL.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXTL.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXVS.obj : C:\z\16\16\lib\x\MXVS.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXVS.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXWD.obj : C:\z\16\16\lib\x\MXWD.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXWD.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXWM.obj : C:\z\16\16\lib\x\MXWM.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXWM.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXWP.obj : C:\z\16\16\lib\x\MXWP.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXWP.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\MXWR.obj : C:\z\16\16\lib\x\MXWR.ASM .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- *wasm MXWR.ASM -i="C:\FDOS\WATCOM/h" -ml -d1 -w4 -e25 -zq\r
-\r
-C:\z\16\16\lib\x\modex.lib : C:\z\16\16\lib\x\MXBB.obj C:\z\16\16\lib\x\MXCC&\r
-.obj C:\z\16\16\lib\x\MXCG.obj C:\z\16\16\lib\x\MXCL.obj C:\z\16\16\lib\x\MX&\r
-CR.obj C:\z\16\16\lib\x\MXEL.obj C:\z\16\16\lib\x\MXFB.obj C:\z\16\16\lib\x\&\r
-MXFP.obj C:\z\16\16\lib\x\MXGC.obj C:\z\16\16\lib\x\MXGI.obj C:\z\16\16\lib\&\r
-x\MXGM.obj C:\z\16\16\lib\x\MXGP.obj C:\z\16\16\lib\x\MXGV.obj C:\z\16\16\li&\r
-b\x\MXHL.obj C:\z\16\16\lib\x\MXIT.obj C:\z\16\16\lib\x\MXLL.obj C:\z\16\16\&\r
-lib\x\MXLN.obj C:\z\16\16\lib\x\MXOT.obj C:\z\16\16\lib\x\MXPB.obj C:\z\16\1&\r
-6\lib\x\MXPF.obj C:\z\16\16\lib\x\MXPG.obj C:\z\16\16\lib\x\MXPI.obj C:\z\16&\r
-\16\lib\x\MXPN.obj C:\z\16\16\lib\x\MXPP.obj C:\z\16\16\lib\x\MXPT.obj C:\z\&\r
-16\16\lib\x\MXRA.obj C:\z\16\16\lib\x\MXRP.obj C:\z\16\16\lib\x\MXSA.obj C:\&\r
-z\16\16\lib\x\MXSC.obj C:\z\16\16\lib\x\MXSI.obj C:\z\16\16\lib\x\MXSL.obj C&\r
-:\z\16\16\lib\x\MXSM.obj C:\z\16\16\lib\x\MXSP.obj C:\z\16\16\lib\x\MXSS.obj&\r
- C:\z\16\16\lib\x\MXTL.obj C:\z\16\16\lib\x\MXVS.obj C:\z\16\16\lib\x\MXWD.o&\r
-bj C:\z\16\16\lib\x\MXWM.obj C:\z\16\16\lib\x\MXWP.obj C:\z\16\16\lib\x\MXWR&\r
-.obj C:\z\16\16\lib\x\MODEX.DEF C:\z\16\16\lib\x\MODEX.H .AUTODEPEND\r
- @C:\r
- cd C:\z\16\16\lib\x\r
- %create modex.lb1\r
-!ifneq BLANK "MXBB.obj MXCC.obj MXCG.obj MXCL.obj MXCR.obj MXEL.obj MXFB.obj&\r
- MXFP.obj MXGC.obj MXGI.obj MXGM.obj MXGP.obj MXGV.obj MXHL.obj MXIT.obj MXL&\r
-L.obj MXLN.obj MXOT.obj MXPB.obj MXPF.obj MXPG.obj MXPI.obj MXPN.obj MXPP.ob&\r
-j MXPT.obj MXRA.obj MXRP.obj MXSA.obj MXSC.obj MXSI.obj MXSL.obj MXSM.obj MX&\r
-SP.obj MXSS.obj MXTL.obj MXVS.obj MXWD.obj MXWM.obj MXWP.obj MXWR.obj"\r
- @for %i in (MXBB.obj MXCC.obj MXCG.obj MXCL.obj MXCR.obj MXEL.obj MXFB.obj &\r
-MXFP.obj MXGC.obj MXGI.obj MXGM.obj MXGP.obj MXGV.obj MXHL.obj MXIT.obj MXLL&\r
-.obj MXLN.obj MXOT.obj MXPB.obj MXPF.obj MXPG.obj MXPI.obj MXPN.obj MXPP.obj&\r
- MXPT.obj MXRA.obj MXRP.obj MXSA.obj MXSC.obj MXSI.obj MXSL.obj MXSM.obj MXS&\r
-P.obj MXSS.obj MXTL.obj MXVS.obj MXWD.obj MXWM.obj MXWP.obj MXWR.obj) do @%a&\r
-ppend modex.lb1 +'%i'\r
-!endif\r
-!ifneq BLANK ""\r
- @for %i in () do @%append modex.lb1 +'%i'\r
-!endif\r
- *wlib -c -n -q -p=512 -irn -inn modex.lib @modex.lb1\r
-\r
diff --git a/16/lib/x/modex.tgt b/16/lib/x/modex.tgt
deleted file mode 100644 (file)
index c59015e..0000000
+++ /dev/null
@@ -1,948 +0,0 @@
-40\r
-targetIdent\r
-0\r
-MProject\r
-1\r
-MComponent\r
-0\r
-2\r
-WString\r
-3\r
-LIB\r
-3\r
-WString\r
-5\r
-d_6s9\r
-1\r
-0\r
-1\r
-4\r
-MCommand\r
-0\r
-5\r
-MCommand\r
-0\r
-6\r
-MItem\r
-9\r
-modex.lib\r
-7\r
-WString\r
-3\r
-LIB\r
-8\r
-WVList\r
-5\r
-9\r
-MCState\r
-10\r
-WString\r
-4\r
-WLIB\r
-11\r
-WString\r
-27\r
-???s?Don't create .bak file\r
-1\r
-0\r
-12\r
-MRState\r
-13\r
-WString\r
-4\r
-WLIB\r
-14\r
-WString\r
-18\r
-???s?Do not import\r
-1\r
-0\r
-15\r
-MRState\r
-16\r
-WString\r
-4\r
-WLIB\r
-17\r
-WString\r
-19\r
-???s?Import by name\r
-1\r
-1\r
-18\r
-MRState\r
-19\r
-WString\r
-4\r
-WLIB\r
-20\r
-WString\r
-18\r
-???s?Do not import\r
-1\r
-0\r
-21\r
-MRState\r
-22\r
-WString\r
-4\r
-WLIB\r
-23\r
-WString\r
-19\r
-???s?Import by name\r
-1\r
-1\r
-24\r
-WVList\r
-1\r
-25\r
-ActionStates\r
-26\r
-WString\r
-5\r
-&Make\r
-27\r
-WVList\r
-2\r
-28\r
-MCState\r
-29\r
-WString\r
-5\r
-WMAKE\r
-30\r
-WString\r
-21\r
-?????Make all targets\r
-1\r
-1\r
-31\r
-MCState\r
-32\r
-WString\r
-5\r
-WMAKE\r
-33\r
-WString\r
-23\r
-?????Do not erase files\r
-1\r
-1\r
--1\r
-1\r
-1\r
-0\r
-34\r
-WPickList\r
-45\r
-35\r
-MItem\r
-5\r
-*.ASM\r
-36\r
-WString\r
-6\r
-ASMOBJ\r
-37\r
-WVList\r
-0\r
-38\r
-WVList\r
-0\r
--1\r
-1\r
-1\r
-0\r
-39\r
-MItem\r
-8\r
-MXBB.ASM\r
-40\r
-WString\r
-6\r
-ASMOBJ\r
-41\r
-WVList\r
-0\r
-42\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-43\r
-MItem\r
-8\r
-MXCC.ASM\r
-44\r
-WString\r
-6\r
-ASMOBJ\r
-45\r
-WVList\r
-0\r
-46\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-47\r
-MItem\r
-8\r
-MXCG.ASM\r
-48\r
-WString\r
-6\r
-ASMOBJ\r
-49\r
-WVList\r
-0\r
-50\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-51\r
-MItem\r
-8\r
-MXCL.ASM\r
-52\r
-WString\r
-6\r
-ASMOBJ\r
-53\r
-WVList\r
-0\r
-54\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-55\r
-MItem\r
-8\r
-MXCR.ASM\r
-56\r
-WString\r
-6\r
-ASMOBJ\r
-57\r
-WVList\r
-0\r
-58\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-59\r
-MItem\r
-8\r
-MXEL.ASM\r
-60\r
-WString\r
-6\r
-ASMOBJ\r
-61\r
-WVList\r
-0\r
-62\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-63\r
-MItem\r
-8\r
-MXFB.ASM\r
-64\r
-WString\r
-6\r
-ASMOBJ\r
-65\r
-WVList\r
-0\r
-66\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-67\r
-MItem\r
-8\r
-MXFP.ASM\r
-68\r
-WString\r
-6\r
-ASMOBJ\r
-69\r
-WVList\r
-0\r
-70\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-71\r
-MItem\r
-8\r
-MXGC.ASM\r
-72\r
-WString\r
-6\r
-ASMOBJ\r
-73\r
-WVList\r
-0\r
-74\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-75\r
-MItem\r
-8\r
-MXGI.ASM\r
-76\r
-WString\r
-6\r
-ASMOBJ\r
-77\r
-WVList\r
-0\r
-78\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-79\r
-MItem\r
-8\r
-MXGM.ASM\r
-80\r
-WString\r
-6\r
-ASMOBJ\r
-81\r
-WVList\r
-0\r
-82\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-83\r
-MItem\r
-8\r
-MXGP.ASM\r
-84\r
-WString\r
-6\r
-ASMOBJ\r
-85\r
-WVList\r
-0\r
-86\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-87\r
-MItem\r
-8\r
-MXGV.ASM\r
-88\r
-WString\r
-6\r
-ASMOBJ\r
-89\r
-WVList\r
-0\r
-90\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-91\r
-MItem\r
-8\r
-MXHL.ASM\r
-92\r
-WString\r
-6\r
-ASMOBJ\r
-93\r
-WVList\r
-0\r
-94\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-95\r
-MItem\r
-8\r
-MXIT.ASM\r
-96\r
-WString\r
-6\r
-ASMOBJ\r
-97\r
-WVList\r
-0\r
-98\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-99\r
-MItem\r
-8\r
-MXLL.ASM\r
-100\r
-WString\r
-6\r
-ASMOBJ\r
-101\r
-WVList\r
-0\r
-102\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-103\r
-MItem\r
-8\r
-MXLN.ASM\r
-104\r
-WString\r
-6\r
-ASMOBJ\r
-105\r
-WVList\r
-0\r
-106\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-107\r
-MItem\r
-8\r
-MXOT.ASM\r
-108\r
-WString\r
-6\r
-ASMOBJ\r
-109\r
-WVList\r
-0\r
-110\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-111\r
-MItem\r
-8\r
-MXPB.ASM\r
-112\r
-WString\r
-6\r
-ASMOBJ\r
-113\r
-WVList\r
-0\r
-114\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-115\r
-MItem\r
-8\r
-MXPF.ASM\r
-116\r
-WString\r
-6\r
-ASMOBJ\r
-117\r
-WVList\r
-0\r
-118\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-119\r
-MItem\r
-8\r
-MXPG.ASM\r
-120\r
-WString\r
-6\r
-ASMOBJ\r
-121\r
-WVList\r
-0\r
-122\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-123\r
-MItem\r
-8\r
-MXPI.ASM\r
-124\r
-WString\r
-6\r
-ASMOBJ\r
-125\r
-WVList\r
-0\r
-126\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-127\r
-MItem\r
-8\r
-MXPN.ASM\r
-128\r
-WString\r
-6\r
-ASMOBJ\r
-129\r
-WVList\r
-0\r
-130\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-131\r
-MItem\r
-8\r
-MXPP.ASM\r
-132\r
-WString\r
-6\r
-ASMOBJ\r
-133\r
-WVList\r
-0\r
-134\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-135\r
-MItem\r
-8\r
-MXPT.ASM\r
-136\r
-WString\r
-6\r
-ASMOBJ\r
-137\r
-WVList\r
-0\r
-138\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-139\r
-MItem\r
-8\r
-MXRA.ASM\r
-140\r
-WString\r
-6\r
-ASMOBJ\r
-141\r
-WVList\r
-0\r
-142\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-143\r
-MItem\r
-8\r
-MXRP.ASM\r
-144\r
-WString\r
-6\r
-ASMOBJ\r
-145\r
-WVList\r
-0\r
-146\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-147\r
-MItem\r
-8\r
-MXSA.ASM\r
-148\r
-WString\r
-6\r
-ASMOBJ\r
-149\r
-WVList\r
-0\r
-150\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-151\r
-MItem\r
-8\r
-MXSC.ASM\r
-152\r
-WString\r
-6\r
-ASMOBJ\r
-153\r
-WVList\r
-0\r
-154\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-155\r
-MItem\r
-8\r
-MXSI.ASM\r
-156\r
-WString\r
-6\r
-ASMOBJ\r
-157\r
-WVList\r
-0\r
-158\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-159\r
-MItem\r
-8\r
-MXSL.ASM\r
-160\r
-WString\r
-6\r
-ASMOBJ\r
-161\r
-WVList\r
-0\r
-162\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-163\r
-MItem\r
-8\r
-MXSM.ASM\r
-164\r
-WString\r
-6\r
-ASMOBJ\r
-165\r
-WVList\r
-0\r
-166\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-167\r
-MItem\r
-8\r
-MXSP.ASM\r
-168\r
-WString\r
-6\r
-ASMOBJ\r
-169\r
-WVList\r
-0\r
-170\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-171\r
-MItem\r
-8\r
-MXSS.ASM\r
-172\r
-WString\r
-6\r
-ASMOBJ\r
-173\r
-WVList\r
-0\r
-174\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-175\r
-MItem\r
-8\r
-MXTL.ASM\r
-176\r
-WString\r
-6\r
-ASMOBJ\r
-177\r
-WVList\r
-0\r
-178\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-179\r
-MItem\r
-8\r
-MXVS.ASM\r
-180\r
-WString\r
-6\r
-ASMOBJ\r
-181\r
-WVList\r
-0\r
-182\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-183\r
-MItem\r
-8\r
-MXWD.ASM\r
-184\r
-WString\r
-6\r
-ASMOBJ\r
-185\r
-WVList\r
-0\r
-186\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-187\r
-MItem\r
-8\r
-MXWM.ASM\r
-188\r
-WString\r
-6\r
-ASMOBJ\r
-189\r
-WVList\r
-0\r
-190\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-191\r
-MItem\r
-8\r
-MXWP.ASM\r
-192\r
-WString\r
-6\r
-ASMOBJ\r
-193\r
-WVList\r
-0\r
-194\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-195\r
-MItem\r
-8\r
-MXWR.ASM\r
-196\r
-WString\r
-6\r
-ASMOBJ\r
-197\r
-WVList\r
-0\r
-198\r
-WVList\r
-0\r
-35\r
-1\r
-1\r
-0\r
-199\r
-MItem\r
-5\r
-*.DEF\r
-200\r
-WString\r
-3\r
-NIL\r
-201\r
-WVList\r
-0\r
-202\r
-WVList\r
-0\r
--1\r
-1\r
-1\r
-0\r
-203\r
-MItem\r
-9\r
-MODEX.DEF\r
-204\r
-WString\r
-3\r
-NIL\r
-205\r
-WVList\r
-0\r
-206\r
-WVList\r
-0\r
-199\r
-1\r
-1\r
-0\r
-207\r
-MItem\r
-3\r
-*.H\r
-208\r
-WString\r
-3\r
-NIL\r
-209\r
-WVList\r
-0\r
-210\r
-WVList\r
-0\r
--1\r
-1\r
-1\r
-0\r
-211\r
-MItem\r
-7\r
-MODEX.H\r
-212\r
-WString\r
-3\r
-NIL\r
-213\r
-WVList\r
-0\r
-214\r
-WVList\r
-0\r
-207\r
-1\r
-1\r
-0\r
diff --git a/16/lib/x/modex.wpj b/16/lib/x/modex.wpj
deleted file mode 100644 (file)
index 0acca46..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-40\r
-projectIdent\r
-0\r
-VpeMain\r
-1\r
-WRect\r
--40\r
--53\r
-10320\r
-9973\r
-2\r
-MProject\r
-3\r
-MCommand\r
-0\r
-4\r
-MCommand\r
-0\r
-1\r
-5\r
-WFileName\r
-9\r
-modex.tgt\r
-6\r
-WVList\r
-1\r
-7\r
-VComponent\r
-8\r
-WRect\r
-0\r
-0\r
-5700\r
-4293\r
-0\r
-0\r
-9\r
-WFileName\r
-9\r
-modex.tgt\r
-26\r
-0\r
-7\r
index 45108a716da7f1eccb33e5de22fa103c43f696dd..f70fb530c580a4cf8451a86d205c8220e4a94750 100644 (file)
--- a/16/x.bat
+++ b/16/x.bat
@@ -1,3 +1,3 @@
 wpp /d1 /0 /ml dos_gfx\r
-wlink file dos_gfx,lib\x\*.obj library lib\x\modex.lib name dos_gfx
+wlink debug c option cvp file 'dos_gfx','lib\x\mxvs.obj' library 'lib\x\modex.lib' name dos_gfx
 copy /y dos_gfx.exe c:\z\bakapi.exe\r