]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_mm.h
modified exmmtest.exe to display graphix
[16.git] / src / lib / 16_mm.h
index 0b2bc4519e349bca278181284894f95fa2b1f126..f7457aa5401dd287f0583dc8e7bc31bdf86f32c7 100644 (file)
@@ -25,6 +25,7 @@
 #include <malloc.h>
 //#include <bios.h>
 #include "src/lib/16_head.h"
+#include "src/lib/modex16.h"
 //++++mh       #include "src/lib/16_in.h"
 
 #ifdef __DEBUG__               // 1 == Debug/Dev  ;  0 == Production/final
@@ -111,6 +112,7 @@ extern void         (* XMSaddr) (void);             // far pointer to XMS driver
 #define BASEATTRIBUTES 0       // unlocked, non purgable
 
 #define MAXUMBS                12
+#define MAPPAGES               4/*mm->EMSpagesmapped*/
 
 typedef struct mmblockstruct
 {
@@ -118,8 +120,7 @@ typedef struct mmblockstruct
        //dword start,length;
        //word  start;
        //dword length;
-       word segm;                              //how many 64kb segment blocks it takes up if there is many data!
-       dword segmlen;          //length of the multi segment data
+       //byte segm;                            //how many 64kb segment blocks it takes up if there is many data!
        unsigned        attributes;
        memptr          *useptr;        // pointer to the segment start
        struct mmblockstruct huge *next;
@@ -176,10 +177,10 @@ void MM_FreePtr(memptr *baseptr, mminfo_t *mm);
 void MM_SetPurge(memptr *baseptr, int purge, mminfo_t *mm);
 void MM_SetLock(memptr *baseptr, boolean locked, mminfo_t *mm);
 void MM_SortMem(mminfo_t *mm);
-void MM_ShowMemory(mminfo_t *mm);
+void MM_ShowMemory(page_t *page, mminfo_t *mm);
 dword MM_UnusedMemory(mminfo_t *mm);
 dword MM_TotalFree(mminfo_t *mm);
-void MM_Report(mminfo_t *mm, mminfotype *mmi);
+void MM_Report(page_t *page, mminfo_t *mm, mminfotype *mmi);
 //int MM_EMSVer(void);
 void MM_BombOnError(boolean bomb, mminfo_t *mm);
 void MM_GetNewBlock(mminfo_t *mm);