From: sparky4 Date: Fri, 3 Jul 2015 20:40:05 +0000 (-0500) Subject: seriously I am stuck... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=073bfdabe4ed1e8cac83ba123c222a9b2949f897;p=16.git seriously I am stuck... modified: exmmtest.exe modified: src/lib/16_mm.c modified: src/lib/16_mm.h --- diff --git a/exmmtest.exe b/exmmtest.exe index da99e03d..ab9002b9 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 66da4714..12f72c96 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -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 diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index bc178f15..373af5e3 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -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;