mmblocktype far *scan,far *last;
word oldend;
sdword extra;
- word segm=1;
+ //word segm=1;
scan = last = mm->mmhead;
mm->mmrover = mm->mmhead; // reset rover to start of memory
sdword end,owner;
//word chx,chy;
word w;
- dword wwww;
- byte scratch[160],scratch0[4096],str[16];
+ //dword wwww;
+ byte scratch[160],scratch0[4096],scratch1[160],str[16];
//byte d = '#';
//**** VW_SetDefaultColors();
//**** VW_SetLineWidth(40);
//++++ modexClearRegion(page, chx, chy, 4, 4, 15);
//++++ VW_Hlin(end+1,scan->next->start,0,0); // black = free
- wwww=(dword)(scan->next->start)-(dword)scan->start;
+ //wwww=(dword)(scan->next->start)-(dword)scan->start;
//wwww=(dword)scan->start+(dword)(scan->next->start);
if (scan->next && scan->next->start >= end+1)
{
strcat(scratch0, AARESET);
strcat(scratch0, "\n");
strcat(scratch0,AAGREEN);
- for(w=(end+1)/80;w<=(wwww/80);w++)
+ for(w=(end+1)/80;w<=((scan->next->start-scan->start)/80);w++)
+ //for(w=(wwww)/80;w<=((end+1)/80);w++)
+ //for(w=(end+1)/80;w<=((wwww)/80);w++)
{
//printf("0 %x %u %lu\n", scan->next->start, w, scan->length);
strcat(scratch0,"0");
}
- printf("==================\n");
- printf("w=%x start=%x next=%x end=%u %lu\n", w, scan->start, (scan->next->start), end+1, wwww);
- printf("==================\n");
+ //printf("==================\n");
+ //printf("w=%u wwww=%lu start=%04x next=%04x end=%lu\n", w/80, wwww/80, scan->start, (scan->next->start), end+1);
+ //printf("==================\n");
strcat(scratch0, "\n");
+ //getch();
}/*else {//if(scan->next->start <= scan->start){
scan->next->start=scan->start+0x1000;
wwww=(dword)(scan->next->start)-(dword)scan->start;
printf("================\n");
printf("w=%x start=%x next=%x end=%u %lu\n", w, scan->start, (scan->next->start), end+1, wwww);
printf("================\n");
-// getch();
+ getch();
}*/
strcat(scratch0, AARESET);
//strcat(scratch0,"\n");
scan = scan->next;
}
+ /*strcpy(scratch1, AARESET);
+ strcat(scratch1, "========================================\n");
+ strcat(scratch1, "near= ");
+ ultoa (*(mm->nearheap),str,10);
+ strcat (scratch1,str);
+ strcat(scratch1, " far= ");
+ ultoa (*(mm->farheap),str,10);
+ strcat (scratch1,str);
+ strcat(scratch1, "\n");
+ //strcat(scratch1, "&near= %Fp ", &(mm->nearheap));
+ //strcat(scratch1, "&far= %Fp", &(mm->farheap));
+ //strcat(scratch1, "\n");
+ strcat(scratch1, "========================================\n");
+ write(gvar->handle.debughandle,scratch1,strlen(scratch1));*/
+
CA_CloseDebug (gvar);