putchar('\n');\r
printf("\nstruct size is %zu bytes\n", n);\r
};\r
+\r
+//from: https://groups.google.com/forum/#!topic/comp.lang.asm.x86/QtuVXl43nDo\r
+void hres (void)\r
+{\r
+ __asm {\r
+ mov ax,3\r
+ int 10h\r
+ mov ax,1112h\r
+ xor bx,bx\r
+ int 10h\r
+ }\r
+}\r
int US_CheckParm(char *parm,char **strings);\r
byte dirchar(byte in);\r
void print_mem(void const *vp, size_t n);\r
+void hres (void);\r
\r
#define PRINT_OPAQUE_STRUCT(p) print_mem((p), sizeof(*(p)))\r
\r
{\r
printf("\nend==%d\n\n", end);\r
strcat(scratch, "MM_ShowMemory: Memory block order currupted!\n");\r
- strcat(scratch, "End's Size: ");\r
- ultoa (end,str,10);\r
- strcat (scratch,str);\r
- strcat(scratch, "\nscan->start's Size: ");\r
- ultoa (scan->start,str,10);\r
- strcat (scratch,str);\r
+ strcat(scratch, "End's Size: "); ultoa (end,str,10); strcat (scratch,str);\r
+ strcat(scratch, "\nscan->start's Size: "); ultoa (scan->start,str,10); strcat (scratch,str);\r
write(gvar->handle.debughandle,scratch,strlen(scratch));\r
Quit (gvar, "MM_ShowMemory: Memory block order currupted!");\r
}\r