]> 4ch.mooo.com Git - 16.git/commitdiff
seriously I am stuck...
authorsparky4 <sparky4@cock.li>
Fri, 3 Jul 2015 20:40:05 +0000 (15:40 -0500)
committersparky4 <sparky4@cock.li>
Fri, 3 Jul 2015 20:40:05 +0000 (15:40 -0500)
modified:   exmmtest.exe
modified:   src/lib/16_mm.c
modified:   src/lib/16_mm.h

exmmtest.exe
src/lib/16_mm.c
src/lib/16_mm.h

index da99e03d676c6bcd1a6112e2642d512ef22dc8f3..ab9002b9e7afc2aba80430dec2f9479d281e10b7 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 66da4714c434ad2a41a1bb1e50f2fd006696525e..12f72c96d856c5c61cb785d67c0842badae05f2c 100644 (file)
@@ -341,7 +341,7 @@ boolean MML_CheckForXMS(mminfo_t *mm)
 
 void MML_SetupXMS(mminfo_t *mm, mminfotype *mmi)
 {
-       unsigned        base,size;
+       word    base,size;
 
 getmemory:
        __asm
@@ -353,6 +353,7 @@ getmemory:
 
                mov     ah,XMS_ALLOCUMB
                mov     dx,0xffff                                       // try for largest block possible
+               //mov     ax,dx                                         // Set available Kbytes.
                call    [DWORD PTR XMSaddr]
                or      ax,ax
                jnz     gotone
index bc178f159c14848b0bb14104fd17746cb20a7bc0..373af5e35d367e768a4a8a99fa126618660fc16d 100644 (file)
@@ -114,7 +114,8 @@ extern void         (* XMSaddr) (void);             // far pointer to XMS driver
 
 typedef struct mmblockstruct
 {
-       unsigned        start,length;
+       //unsigned      start,length;
+       dword   start,length;
        unsigned        attributes;
        memptr          *useptr;        // pointer to the segment start
        struct mmblockstruct huge *next;
@@ -130,7 +131,7 @@ typedef struct
        void            *nearheap;
        unsigned        totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle;
        unsigned int EMSVer;
-       unsigned        numUMBs,UMBbase[MAXUMBS];
+       word    numUMBs,UMBbase[MAXUMBS];
        mmblocktype     huge mmblocks[MAXBLOCKS],huge *mmhead,huge *mmfree,huge *mmrover,huge *mmnew;
 } mminfo_t;