X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2F16_mm.h;h=083a4d299c9edac773a18e1e40688c40b9e62d32;hb=1287746074527ec8af4c6ca515802e5a72d0ef05;hp=64c946a8828e94ffad30b978b51a62a52ec88e62;hpb=3476d7884db6fecd32ab58fcdc5c2f0e8c6e2232;p=16.git diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 64c946a8..083a4d29 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -37,11 +37,11 @@ #define SAVENEARHEAP 0x200 // space to leave in data segment -#define SAVEFARHEAP 0 // space to leave in far heap +#define SAVEFARHEAP 0x400 // space to leave in far heap #define BUFFERSIZE 0x1000 // miscelanious, allways available buffer -#define MAXBLOCKS 600//720 +#define MAXBLOCKS 720 @@ -84,15 +84,11 @@ #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;