5void DumpMemory(
byte* p, dword size,
int BytesPerLine)
9 byte *StartAddress = p;
10 int CollectedBytes, i;
11 char text[200], Header[20];
27 TAP_SPrint(Header,
"%p 0x%4.4lx: ", p, (dword)(p - StartAddress));
32 TAP_SPrint(&s[strlen(s)],
"%2.2x ", *p);
33 if((*p >= 0x20) && (*p <= 0x7e))
34 TAP_SPrint(&text[strlen(text)],
"%c", *p);
36 TAP_SPrint(&text[strlen(text)],
".");
42 if(CollectedBytes >= BytesPerLine)
44 TAP_SPrint(&s[strlen(s)],
" %s\n", text);
49 TAP_SPrint(Header,
"%p 0x%4.4lx: ", p, (dword)(p - StartAddress));
58 size = BytesPerLine - size;
59 for(i = 0; i < (int)size; i++)
63 TAP_SPrint(&s[strlen(s)],
" %s\n", text);
void DumpMemory(byte *p, dword size, int BytesPerLine)