void MML_SetupXMS(mminfo_t *mm, mminfotype *mmi)
{
- unsigned base,size;
+ word base,size;
getmemory:
__asm
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
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;
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;