]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_mm.h
wwww added timer!!
[16.git] / src / lib / 16_mm.h
index ff60c63fd95c051d7470f14a0d0be46c05a84770..083a4d299c9edac773a18e1e40688c40b9e62d32 100644 (file)
 #endif
 
 
-#define SAVENEARHEAP   0x400           // space to leave in data segment
-#define SAVEFARHEAP    0//x4000                        // space to leave in far heap
+#define SAVENEARHEAP   0x200           // space to leave in data segment
+#define SAVEFARHEAP    0x400                   // space to leave in far heap
 
 #define        BUFFERSIZE              0x1000          // miscelanious, allways available buffer
 
-#define MAXBLOCKS              600//720
+#define MAXBLOCKS              720
 
 
 
 #define        XMS_FREEUMB             0x11
 
 //==========================================================================
-//I hope this is correct!
-//__segment                seg;
-typedef void __based(__self) *memptr; //__based(seg) * memptr;
 
 typedef struct
 {
        dword   nearheap,farheap,EMSmem,XMSmem,mainmem;
-       //word __based(__segname("_CODE")) segu;
-//
+       //__segment segu;
 } mminfotype;
 
 //==========================================================================
@@ -121,11 +117,8 @@ extern void                (* XMSaddr) (void);             // far pointer to XMS driver
 
 typedef struct mmblockstruct
 {
-       word    start,length;
-       //dword start,length;
-       //word  start;
-       //dword length;
-       //byte segm;                            //how many 64kb segment blocks it takes up if there is many data!
+       //word  start,length;
+       word    start;  dword length;
        unsigned        attributes;
        memptr          *useptr;        // pointer to the segment start
        struct mmblockstruct huge *next;