void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm)
{
mmblocktype huge *scan,huge *last;
+ word segm;
dword oldend;
dword extra;
}
//find out how many blocks it spans!
- /*++++if(seglength>0xffffu)
+ if(seglength>0xffffu)
{
- scan->sega=(word)seglength/0xffffu;
+ segm=seglength/0x4000u;
}
- else scan->sega=1;*/
+ else segm=1;
//
// take the given range out of the block
inc ax
mov ds,ax
}*/
-//++++printf("sega=%u ", scan->sega);
+printf("segm=%u ", segm);
printf("ex=%lu ", extra);
printf("len=%u ", scan->length);
printf("segsta=%x ", segstart);
//dword start,length;
//word start;
//dword length;
- //++++word sega; //how many 64kb segment blocks it takes up if there is many 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;