mmblocktype huge *scan,huge *last;
dword oldend;
///*d*/word fat=0;
- word segm=0;
dword extra;
scan = last = mm->mmhead;
mm->mmrover = mm->mmhead; // reset rover to start of memory
+ scan->segm=1;
+ scan->segmlen=seglength;
//
// search for the block that contains the range of segments
scan = scan->next;
}
+ //find out how many blocks it span!
if(seglength>0xfffflu)
{
- segm=seglength/0xfffflu;
+ scan->segm=seglength/0xfffflu;
}
//
inc ax
mov ds,ax
}*/
+printf("segm=%u ", scan->segm);
printf("ex=%lu ", extra);
-printf("segm=%u ", segm);
printf("len=%u ", scan->length);
printf("segsta=%u ", segstart);
printf("seglen=%lu\n", seglength);
//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
unsigned attributes;
memptr *useptr; // pointer to the segment start
struct mmblockstruct huge *next;