void MM_ShowMemory (global_game_variables_t *gvar)\r
{\r
mmblocktype far *scan;\r
- unsigned color,temp,x,y ,w,width,sw;\r
+ unsigned color,temp,x,y ,q,w,width,sw;\r
sdword end,owner;\r
byte scratch[160],scratch0[4096],str[16];\r
#ifdef MMSMSCANINFO\r
mmshowmemoryinfo_t scaninfo[MAXBLOCKS];\r
byte scratch1[4];\r
- unsigned /*xpos,ypos, */oldq,q,maxq;\r
+ unsigned /*xpos,ypos, */oldq,maxq;\r
boolean done,restarted,mmsmscaninfoxyposinew;\r
ScanCode scancode;\r
#endif\r
#ifdef MMSMSCANINFO\r
oldq = 0; restarted = false; mmsmscaninfoxyposinew = false;\r
reset:\r
- q = 0;\r
#endif\r
scan = gvar->mm.mmhead;\r
\r
- end = -1; w = 0;\r
+ end = -1; w = 0; q = 0;\r
\r
width = gvar->video.page[0].width; sw = gvar->video.page[0].sw;\r
\r
//0000fprintf(stdout, "[%u]\n", q);\r
\r
scan = scan->next;\r
-#ifdef MMSMSCANINFO\r
+//#ifdef MMSMSCANINFO\r
q++;\r
-#endif\r
+//#endif\r
//0000if(gvar->video.VL_Started && color!=6) IN_Ack(gvar);\r
}\r
\r
modexClearRegion(&gvar->video.page[0], gvar->video.page[0].dx, gvar->video.page[0].dy, gvar->video.page[0].sw, gvar->video.page[0].sh, 8);\r
}else\r
#endif\r
+ {\r
clrscr();\r
+ }\r
sprintf(global_temp_status_text, "block #%04u", q); MMSMPRINTMEMINFO\r
// sprintf(global_temp_status_text, "%Fp", scaninfo[q].scan->useptr); MMSMPRINTMEMINFO\r
sprintf(global_temp_status_text, "start: %04x", (unsigned)scaninfo[q].scan->start); MMSMPRINTMEMINFO\r
#include "src/lib/16_vl.h"\r
\r
static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
-#define VGASTRIDEVARIABLE gvar->video.page[0].stridew\r
-//vga_state.vga_stride\r
+#define VGASTRIDEVARIABLE vga_state.vga_stride\r
+//#define VGASTRIDEVARIABLE gvar->video.page[0].stridew\r
\r
//===========================================================================\r
\r