]> 4ch.mooo.com Git - 16.git/commitdiff
EXMMTEST IS CRAZY!!!!
authorsparky4 <sparky4@cock.li>
Tue, 21 Jul 2015 17:47:36 +0000 (12:47 -0500)
committersparky4 <sparky4@cock.li>
Tue, 21 Jul 2015 17:47:36 +0000 (12:47 -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/exmmtest.c
modified:   src/lib/16_mm.c
modified:   src/lib/16_mm.h
modified:   test.exe
modified:   test2.exe
modified:   tsthimem.exe

21 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/exmmtest.c
src/lib/16_mm.c
src/lib/16_mm.h
test.exe
test2.exe
tsthimem.exe

diff --git a/16.exe b/16.exe
index 8011c296ca3524686ece36e03e79208bfa05294e..bcf171f84974523681a2effa09a236b731e485e6 100644 (file)
Binary files a/16.exe and b/16.exe differ
index 4505bcdc9101c1abcf834056ea7e5614bdeb69cc..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
--- a/DEBUG.TXT
+++ b/DEBUG.TXT
@@ -1,7 +0,0 @@
-Seg:0  Size:114016     Owner:0xbc84\r
-Seg:1bd6       Size:8192       Owner:0x7972\r
-Seg:2200       Size:8512       Owner:0xb1dc\r
-Seg:2a5e       Size:743968     Owner:0x7c00\r
-Seg:e000       Size:31344      Owner:0x9aa8\r
-\r
-MM_ShowMemory: Memory block order currupted!\r
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..06b0ee8525dff2ffcc063d8c9cbb6838e56c66c7 100644 (file)
@@ -0,0 +1,5 @@
+0x004c:0a75 (P\80) = 3009\r
+0x004c:120a (P\11) = 3009\r
+0x002d:21e6 (-ä) = 3009\r
+0x004c:c36b (PÍ) = 3009\r
+0x004c:fd76 (PÐ) = 3009\r
index 36037c4f2950a2fc3dd0920269c89da18cae114f..08892014ccb2c50a4560bd43ff401bc0f03db1fa 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 2af74dea48dfeb8fc99fae1d74b4c3e65bdf82b9..2a7db548763f8a8bb38e73e440e6aae7b889fa76 100644 (file)
Binary files a/fmemtest.exe and b/fmemtest.exe differ
index 5bacb71657f589578e3526fa2cde1198bab14a0e..612eaae813258527f96f4b44a688ab69cfa34fcc 100644 (file)
Binary files a/fontgfx.exe and b/fontgfx.exe differ
index bcbc9adba0fbc816dfe659401ac02705d4a96d51..32fe3ed3f7f4826709fdfb8be015e82a62be021c 100644 (file)
Binary files a/fonttes0.exe and b/fonttes0.exe differ
index 53ce74e450ec27254c473e190bfea5a24637d8fe..e5d7fa8d9ac33e6fd65d58700f13c72553b941ee 100644 (file)
Binary files a/fonttest.exe and b/fonttest.exe differ
index 21b808033facc3ff4d17155f56a3280a74bc8043..b20e87ca9d155c63b454ded787f90e401163d739 100644 (file)
Binary files a/inputest.exe and b/inputest.exe differ
index 6b868df86c7ef38793ae0a052bc043f70ed1d631..5d5f4abc9aaf38ff6dfc2749dcd435837e6014b0 100644 (file)
--- a/makefile
+++ b/makefile
@@ -13,9 +13,9 @@ TARGET_OS = dos
 #-zkl = current codepage
 
 DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1# -zm
-CFLAGS=-zk0 -wo -x -mc -zu -k32768#-k48000# -zdp# -zp16 -zq
+CFLAGS=-zk0 -wo -x -mc -zu #-k32768#-k16384# -zdp# -zp16 -zq
 OFLAGS=-ot -ox -ob -oh -or# -om -ol -ol+
-FLAGS=-0 -d1 -lr $(OFLAGS) $(CFLAGS) $(DFLAGS) #-d2
+FLAGS=-0 -lr $(OFLAGS) $(CFLAGS) $(DFLAGS) #-d2
 SRC=src$(DIRSEP)
 SRCLIB=$(SRC)lib$(DIRSEP)
 JSMNLIB=$(SRCLIB)jsmn$(DIRSEP)
@@ -28,8 +28,8 @@ DOSLIBOBJ = adlib.$(OBJ) midi.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OB
 16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) scroll16.$(OBJ) 16_ca.$(OBJ)
 GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ)
 
-all: 16.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe exmmtest.exe fonttes0.exe fontgfx.exe sountest.exe miditest.exe tsthimem.exe inputest.exe
-#testemm.exe testemm0.exe
+all: 16.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe exmmtest.exe fontgfx.exe sountest.exe tsthimem.exe inputest.exe
+#testemm.exe testemm0.exe fonttes0.exe miditest.exe
 
 #
 #executables
index d987ca52951b5e5ddb1e8773ae79fdc720662398..8c098e4224bcea202571b38535f6cf9600836aeb 100644 (file)
Binary files a/maptest.exe and b/maptest.exe differ
index 57f7442cb423973af7798a6e190498de4af3bf12..c3d26429292c173cdce521c30099fe8fb98b0aa0 100644 (file)
Binary files a/miditest.exe and b/miditest.exe differ
index 0ee68af97218d67d9d266e6c31e38ebf16a15553..edac065eab49d8a6080c6f8f8bda321bb85600dc 100644 (file)
Binary files a/palettec.exe and b/palettec.exe differ
index a42df2be92a4000aa5ca5ad19e33e2e49db95b79..45e2aedeab2247a9ab676100402130ed9e9c8e26 100644 (file)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index 4ffcff6d9c7b4b79bcebb0a31914d23657c437a5..3e85c76ea34687d9db06f889a25570d771bf6852 100644 (file)
Binary files a/sountest.exe and b/sountest.exe differ
index a7a781885d3643d0c857ba9b16890fc7117a91b3..f07fcf365928dd7f286fed1df6d14042704c49dd 100644 (file)
@@ -52,15 +52,15 @@ main(int argc, char *argv[])
        screen.width += (16*2);\r
        screen.height += (16*2);
 
-       printf("start!\n");
+       printf("                start!\n");
        MM_Startup(&mm, &mmi);
-       printf("done!\n");
+       printf("                done!\n");
        printf("&main()=%Fp\n", *argv[0]);
 #ifdef FILEINIT
-       printf("read\n");
+       printf("                read\n");
        if(CA_ReadFile(bakapee, &bigbuffer, &mm/*, &mmi*/))
 #else
-       printf("load\n");
+       printf("                load\n");
        if(CA_LoadFile(bakapee, &bigbuffer, &mm, &mmi))
 #endif
                baka=1;
@@ -76,14 +76,14 @@ main(int argc, char *argv[])
        modexEnter();
        modexShowPage(&screen);
        MM_ShowMemory(&screen, &mm);
-       getch();
+       //getch();
        MM_DumpData(&mm);
        modexLeave();
        MM_Report(&screen, &mm, &mmi);
-       printf("stop!\n");
+       printf("                stop!\n");
        MM_FreePtr(&bigbuffer, &mm);
        MM_Shutdown(&mm);
-       printf("done!\n");
+       printf("                done!\n");
        free(bakapee);
        //printf("_bios_memsize=%u\n", _bios_memsize());
        if(baka) printf("\nyay!\n");
index fc5238a381641ca07e40bc946771ef57eac5bdca..184dc9e8ef9c3881ffb042f276a53462a18ae91b 100644 (file)
@@ -306,7 +306,6 @@ byte MM_MapEMS(mminfo_t *mm, mminfotype *mmi)
 
 byte MM_MapXEMS(mminfo_t *mm, mminfotype *mmi)
 {
-
 //SUB EMS.MapXPages (PhysicalStart, LogicalStart, NumPages, Handle)
 
        //Maps up to 4 logical EMS pages to physical pages in the page frame, where:
@@ -343,7 +342,7 @@ byte MM_MapXEMS(mminfo_t *mm, mminfotype *mmi)
        {
                __asm
                {
-                       mov     ax,EMS_MAPXPAGE
+                       mov     ah,EMS_MAPXPAGE
                        mov     cx,[i]                  // logical page
                        mov     al,bl                   // physical page
                        mov     dx,[EMShandle]  // handle
@@ -720,10 +719,10 @@ printf("          EMS3\n");
                //TODO: EMS4! AND EMS 3.2 MASSIVE DATA HANDLMENT!
                MML_UseSpace(mm->EMSpageframe,(MAPPAGES)*0x4000lu, mm);
 printf("               EMS4\n");
-               if(mm->EMSVer<0x40)
+               //if(mm->EMSVer<0x40)
                        MM_MapEMS(mm, mmi);                                     // map in used pages
-               else
-                       MM_MapXEMS(mm, mmi);                                    // map in used pages
+               //else
+               //      MM_MapXEMS(mm, mmi);                                    // map in used pages
        }
 
 //
@@ -1393,9 +1392,6 @@ void MM_Report(page_t *page, mminfo_t *mm, mminfotype *mmi)
 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);
-       getch();
        switch(err)
        {
                case 0x0:
index fb8b79c41faa15e0ce514224bbad9b34b48d83a1..689995218ad1ebc8d3630b04cf0a3c0c09d26a62 100644 (file)
@@ -39,9 +39,9 @@
 #define SAVENEARHEAP   0x200           // space to leave in data segment
 #define SAVEFARHEAP            0                       // space to leave in far heap
 
-#define        BUFFERSIZE              0x2000          // miscelanious, allways available buffer
+#define        BUFFERSIZE              0x1000          // miscelanious, allways available buffer
 
-#define MAXBLOCKS              600
+#define MAXBLOCKS              640
 
 
 
@@ -54,7 +54,7 @@
 #define        EMS_GETPAGES    0x42
 #define        EMS_ALLOCPAGES  0x43
 #define        EMS_MAPPAGE             0x44
-#define        EMS_MAPXPAGE            0x5000
+#define        EMS_MAPXPAGE            0x50
 #define        EMS_FREEPAGES   0x45
 #define        EMS_VERSION             0x46
 
index 39c9835451d99def803832c875ed2f12f6652775..424e96f77d99361b106cd13155086c9ebd6437e3 100644 (file)
Binary files a/test.exe and b/test.exe differ
index 40de58100f2980a8a40904fc8987996634b53853..bca481f47440f9ddb5fa9d6fd78c5cc00853ee7b 100644 (file)
Binary files a/test2.exe and b/test2.exe differ
index 9d0f29e2c29c23f023dc0df4677fccd9ff7b4b7c..19118cf62f27103cb5b021778bc3e2ade0e4449b 100644 (file)
Binary files a/tsthimem.exe and b/tsthimem.exe differ