]> 4ch.mooo.com Git - 16.git/commitdiff
pew pew boom
authorsparky4 <sparky4@cock.li>
Tue, 21 Jul 2015 17:15:33 +0000 (12:15 -0500)
committersparky4 <sparky4@cock.li>
Tue, 21 Jul 2015 17:15:33 +0000 (12:15 -0500)
modified:   16.exe
modified:   DEBUG.TXT
modified:   MMDUMP.TXT
modified:   exmmtest.exe
modified:   fmemtest.exe
modified:   fontgfx.exe
modified:   fonttes0.exe
modified:   fonttest.exe
modified:   inputest.exe
modified:   makefile
modified:   maptest.exe
modified:   miditest.exe
modified:   palettec.exe
modified:   pcxtest.exe
modified:   sountest.exe
modified:   src/lib/16_mm.c
modified:   test.exe
modified:   test2.exe
modified:   tsthimem.exe

19 files changed:
16.exe
DEBUG.TXT
MMDUMP.TXT
exmmtest.exe
fmemtest.exe
fontgfx.exe
fonttes0.exe
fonttest.exe
inputest.exe
makefile
maptest.exe
miditest.exe
palettec.exe
pcxtest.exe
sountest.exe
src/lib/16_mm.c
test.exe
test2.exe
tsthimem.exe

diff --git a/16.exe b/16.exe
index 06506b05d29d13f3054669555b70bc35cee16c8b..8011c296ca3524686ece36e03e79208bfa05294e 100644 (file)
Binary files a/16.exe and b/16.exe differ
index b442a8f888548503f38d5ae2e636b38267934e70..a9cdbe7a8d53c1667d7e8f3a0d94c045969418a2 100644 (file)
--- a/DEBUG.TXT
+++ b/DEBUG.TXT
@@ -1,7 +1,5 @@
-Seg:0  Size:114096     Owner:0xfd10\r
-Seg:1bdb       Size:4096       Owner:0xb512\r
-Seg:1e4b       Size:8512       Owner:0x8ebc\r
-Seg:22ef       Size:774416     Owner:0x8e2e\r
-Seg:e000       Size:31344      Owner:0xd648\r
-\r
-MM_ShowMemory: Memory block order currupted!\r
+Seg:0  Size:143152     Owner:0x9a50\r
+Seg:22f3       Size:4096       Owner:0x97a0\r
+Seg:2560       Size:544        Owner:0x90c7\r
+Seg:280f       Size:753424     Owner:0x70bc\r
+Seg:e000       Size:131056     Owner:0x8d03\r
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b5a1baa034c4baa3d4480d96558cdcbf7319f8f6 100644 (file)
Binary files a/MMDUMP.TXT and b/MMDUMP.TXT differ
index d110a3fb131041713af93467f7eff7d4c1bc2bc3..84a2e38744ac782b0f967de477bb1eb4848d3b37 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index d9ccddbf8de1c675d8b4cb07df4d8d8d3c231f8d..2af74dea48dfeb8fc99fae1d74b4c3e65bdf82b9 100644 (file)
Binary files a/fmemtest.exe and b/fmemtest.exe differ
index 3dd39f3824ed7a76b1aee3b4bbf63518bf8ec76a..5bacb71657f589578e3526fa2cde1198bab14a0e 100644 (file)
Binary files a/fontgfx.exe and b/fontgfx.exe differ
index ae601be34a382d386347788c3101c9e0fe9f1ce1..bcbc9adba0fbc816dfe659401ac02705d4a96d51 100644 (file)
Binary files a/fonttes0.exe and b/fonttes0.exe differ
index 1e5af570c040803f45ff9a0149b14ccf76e9ee24..53ce74e450ec27254c473e190bfea5a24637d8fe 100644 (file)
Binary files a/fonttest.exe and b/fonttest.exe differ
index 5824e8ee5aa20a6030d5f53684f9db2cec5fca90..21b808033facc3ff4d17155f56a3280a74bc8043 100644 (file)
Binary files a/inputest.exe and b/inputest.exe differ
index 1c56ca5522de729cd705d7292025dbe965968d93..6b868df86c7ef38793ae0a052bc043f70ed1d631 100644 (file)
--- a/makefile
+++ b/makefile
@@ -13,7 +13,7 @@ TARGET_OS = dos
 #-zkl = current codepage
 
 DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1# -zm
-CFLAGS=-zk0 -wo -x -mc -zu -k48000# -zdp# -zp16 -zq
+CFLAGS=-zk0 -wo -x -mc -zu -k32768#-k48000# -zdp# -zp16 -zq
 OFLAGS=-ot -ox -ob -oh -or# -om -ol -ol+
 FLAGS=-0 -d1 -lr $(OFLAGS) $(CFLAGS) $(DFLAGS) #-d2
 SRC=src$(DIRSEP)
index 80f3a40b3100c61f6c65215a8721bc5049522e58..d987ca52951b5e5ddb1e8773ae79fdc720662398 100644 (file)
Binary files a/maptest.exe and b/maptest.exe differ
index 55eb2bf23e330b1222c3b52c821fc45daddda99b..57f7442cb423973af7798a6e190498de4af3bf12 100644 (file)
Binary files a/miditest.exe and b/miditest.exe differ
index 376d8f4668f9a193df7d479a896b745514a025a7..0ee68af97218d67d9d266e6c31e38ebf16a15553 100644 (file)
Binary files a/palettec.exe and b/palettec.exe differ
index 115a7fa687ba9e73f3e19231f322c067e698a8d4..a42df2be92a4000aa5ca5ad19e33e2e49db95b79 100644 (file)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index a41715799dddfaee53285d13c22df49037491a77..4ffcff6d9c7b4b79bcebb0a31914d23657c437a5 100644 (file)
Binary files a/sountest.exe and b/sountest.exe differ
index a51e7d44a318e5542b38a940f671f86a237265ba..38449a145d8f9e2afbd76e195916056a91145b46 100644 (file)
@@ -1394,88 +1394,88 @@ void MM_EMSerr(byte *stri, byte err)
 {
        //Returns a text string describing the error code in EMS.Error.
        fprintf(stderr, "\n%x\n\n", err);
+       fprintf(stderr, "\n%u\n\n", err);
        switch(err)
        {
-               case '0h':
+               case 0x0:
                        strcat(stri, "successful");
-               case '80h':
+               case 0x80:
                        strcat(stri, "internal error");
-               case '81h':
+               case 0x81:
                        strcat(stri, "hardware malfunction");
-               case '82h':
+               case 0x82:
                        strcat(stri, "busy .. retry later");
-               case '83h':
+               case 0x83:
                        strcat(stri, "invalid handle");
-               case '84h':
+               case 0x84:
                        strcat(stri, "undefined function requested by application");
-               case '85h':
+               case 0x85:
                        strcat(stri, "no more handles available");
-               case '86h':
+               case 0x86:
                        strcat(stri, "error in save or restore of mapping context");
-               case '87h':
+               case 0x87:
                        strcat(stri, "insufficient memory pages in system");
-               case '88h':
+               case 0x88:
                        strcat(stri, "insufficient memory pages available");
-               case '89h':
+               case 0x89:
                        strcat(stri, "zero pages requested");
-               case '8Ah':
+               case 0x8A:
                        strcat(stri, "invalid logical page number encountered");
-               case '8Bh':
+               case 0x8B:
                        strcat(stri, "invalid physical page number encountered");
-               case '8Ch':
+               case 0x8C:
                        strcat(stri, "page-mapping hardware state save area is full");
-               case '8Dh':
+               case 0x8D:
                        strcat(stri, "save of mapping context failed");
-               case '8Eh':
+               case 0x8E:
                        strcat(stri, "restore of mapping context failed");
-               case '8Fh':
+               case 0x8F:
                        strcat(stri, "undefined subfunction");
-               case '90h':
+               case 0x90:
                        strcat(stri, "undefined attribute type");
-               case '91h':
+               case 0x91:
                        strcat(stri, "feature not supported");
-               case '92h':
+               case 0x92:
                        strcat(stri, "successful, but a portion of the source region has been overwritten");
-               case '93h':
+               case 0x93:
                        strcat(stri, "length of source or destination region exceeds length of region allocated to either source or destination handle");
-               case '94h':
+               case 0x94:
                        strcat(stri, "conventional and expanded memory regions overlap");
-               case '95h':
+               case 0x95:
                        strcat(stri, "offset within logical page exceeds size of logical page");
-               case '96h':
+               case 0x96:
                        strcat(stri, "region length exceeds 1 MB");
-               case '97h':
+               case 0x97:
                        strcat(stri, "source and destination EMS regions have same handle and overlap");
-               case '98h':
+               case 0x98:
                        strcat(stri, "memory source or destination type undefined");
-               case '9Ah':
+               case 0x9A:
                        strcat(stri, "specified alternate map register or DMA register set not supported");
-               case '9Bh':
+               case 0x9B:
                        strcat(stri, "all alternate map register or DMA register sets currently allocated");
-               case '9Ch':
+               case 0x9C:
                        strcat(stri, "alternate map register or DMA register sets not supported");
-               case '9Dh':
+               case 0x9D:
                        strcat(stri, "undefined or unallocated alternate map register or DMA register set");
-               case '9Eh':
+               case 0x9E:
                        strcat(stri, "dedicated DMA channels not supported");
-               case '9Fh':
+               case 0x9F:
                        strcat(stri, "specified dedicated DMA channel not supported");
-               case 'A0h':
+               case 0xA0:
                        strcat(stri, "no such handle name");
-               case 'A1h':
+               case 0xA1:
                        strcat(stri, "a handle found had no name, or duplicate handle name");
-               case 'A2h':
+               case 0xA2:
                        strcat(stri, "attempted to wrap around 1M conventional address space");
-               case 'A3h':
+               case 0xA3:
                        strcat(stri, "source array corrupted");
-               case 'A4h':
+               case 0xA4:
                        strcat(stri, "operating system denied access");
                default:
                        strcat(stri, "undefined error");
        }
 }
 
-
 //==========================================================================
 
 /*
index 9ab02f96776a6d21dc91df82eef7923b48bdba31..39c9835451d99def803832c875ed2f12f6652775 100644 (file)
Binary files a/test.exe and b/test.exe differ
index 65ee9440e3b0279a48a33e08e6d64d57ca15fa3a..40de58100f2980a8a40904fc8987996634b53853 100644 (file)
Binary files a/test2.exe and b/test2.exe differ
index bb81bf53a82a9a165ebeec030ac8ba3b77753711..9d0f29e2c29c23f023dc0df4677fccd9ff7b4b7c 100644 (file)
Binary files a/tsthimem.exe and b/tsthimem.exe differ