#define FREEBLOCK(x) {*x->useptr=NULL;x->next=mm->mmfree;mm->mmfree=x;}
-#define AARED "\x1b[41;31m"
-#define AABLUE "\x1b[44;34m"
-#define AAGREEN "\x1b[42;32m"
-#define AAYELLOW "\x1b[43;33m"
-#define AAGREY "\x1b[47;37m"
-#define AABLACK "\x1b[40;30m"
-#define AAWHITE "\x1b[47;37m"
-#define AAMAGENTA "\x1b[45;35m"
-#define AARESET "\x1b[0m"
-
#define SAVENEARHEAP 0x200 // space to leave in data segment
#define SAVEFARHEAP 0//x400 // space to leave in far heap
typedef struct mmblockstruct
{
- //word start,length;
- word start; dword length;
+ word start,length;
+ //word start; dword length;
word blob; //for data larger than 64k
unsigned attributes;
memptr *useptr; // pointer to the segment start
- struct mmblockstruct huge *next;
+ //huge struct mmblockstruct huge *next;
+ struct mmblockstruct far *next;
} mmblocktype;
{
memptr bufferseg;
boolean mmstarted, bombonerror, mmerror;
- void huge *farheap;
+ //huge void huge *farheap;
+ void far *farheap;
#ifdef __BORLANDC__
void *nearheap;
#endif
unsigned int EMSVer;
word numUMBs,UMBbase[MAXUMBS];
//dword numUMBs,UMBbase[MAXUMBS];
- mmblocktype huge mmblocks[MAXBLOCKS],huge *mmhead,huge *mmfree,huge *mmrover,huge *mmnew;
+ //huge mmblocktype huge mmblocks[MAXBLOCKS],huge *mmhead,huge *mmfree,huge *mmrover,huge *mmnew;
+ mmblocktype far mmblocks[MAXBLOCKS],far *mmhead,far *mmfree,far *mmrover,far *mmnew;
} mminfo_t;
/*