-\e[0mSeg:0 Size:2982 Owner:0x6574\r
+\e[0mSeg:0 Size:3016 Owner:0x2065\r
\e[41;31m++++++++++++++++++++++++++++++++++++++\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:ba6 Size:256 Owner:0xcf7a\r
+\e[0m\e[0mSeg:bc8 Size:256 Owner:0xcf79\r
\e[44;34m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:ca6 Size:273 Owner:0xfde\r
-\e[44;34m++++\e[0m\e[42;32m000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\r
+\e[0m\e[0mSeg:cc8 Size:273 Owner:0xfde\r
+\e[44;34m+++++\e[0m\e[42;32m0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\r
\e[0m\e[0mSeg:9fde Size:28706 Owner:0x0\r
\e[41;31m\e[0m\e[42;32m\r
\e[0m\e[0mSeg:9ffe Size:16386 Owner:0x0\r
//printf("red = locked\n");\r
printf("press any key to continue!\n");\r
getch();\r
- MM_ShowMemory(&gvar, &gvar.mm);\r
+ MM_ShowMemory(&gvar);\r
MM_DumpData(&gvar.mm);\r
MM_Report_(&gvar);\r
if(baka) printf("\nyay!\n");\r
\r
//===========================================================================\r
\r
+/*\r
+==================\r
+=\r
+= DebugMemory\r
+=\r
+==================\r
+*/\r
+\r
+void DebugMemory (global_game_variables_t *gvar)\r
+{\r
+ /*VW_FixRefreshBuffer ();\r
+ US_CenterWindow (16,7);\r
+\r
+ US_CPrint ("Memory Usage");\r
+ US_CPrint ("------------");\r
+ US_Print ("Total :");\r
+ US_PrintUnsigned (mminfo.mainmem/1024);\r
+ US_Print ("k\nFree :");\r
+ US_PrintUnsigned (MM_UnusedMemory()/1024);\r
+ US_Print ("k\nWith purge:");\r
+ US_PrintUnsigned (MM_TotalFree()/1024);\r
+ US_Print ("k\n");\r
+ VW_UpdateScreen();*/\r
+ IN_Ack ();\r
+ MM_ShowMemory (gvar);\r
+}\r
+\r
/*\r
==========================\r
=\r
#define __16_LIB__\r
\r
#include "src/lib/16_head.h"\r
+#include "src/lib/16_mm.h"\r
#include "src/lib/16_in.h"\r
\r
+void DebugMemory (global_game_variables_t *gvar);\r
void Quit (char *error);\r
\r
#endif\r
=====================
*/
-void MM_ShowMemory(global_game_variables_t *gvar,/*page_t *page, */mminfo_t *mm)
+void MM_ShowMemory(global_game_variables_t *gvar)
{
//huge mmblocktype huge *scan;
mmblocktype far *scan;
//++++mh temp = bufferofs;
//++++mh bufferofs = 0;
//**** VW_SetScreen (0,0);
- scan = mm->mmhead;
+ scan = gvar->mm.mmhead;
end = -1;
CA_OpenDebug (gvar);
void MM_SetPurge(memptr *baseptr, int purge, mminfo_t *mm);
void MM_SetLock(memptr *baseptr, boolean locked, mminfo_t *mm);
void MM_SortMem(mminfo_t *mm);
-void MM_ShowMemory(global_game_variables_t *gvar,/*page_t *page, */mminfo_t *mm);
+void MM_ShowMemory(global_game_variables_t *gvar);//,/*page_t *page, */mminfo_t *mm);
void MM_DumpData(mminfo_t *mm);
dword MM_UnusedMemory(mminfo_t *mm);
dword MM_TotalFree(mminfo_t *mm);
}
}
VGAmodeX(0, 1, &gvar);
- MM_ShowMemory(&gvar, &gvar.mm);
+ MM_ShowMemory(&gvar);
MM_DumpData(&gvar.mm);
free(spri.sprite_vrl_cont);
MM_FreePtr(&bigbuffer, &gvar.mm);