fixes #11 - ASCII dump missing character

This commit is contained in:
Tom Nisbet 2020-06-29 15:26:30 -04:00
parent 2ed10872fe
commit 519e90ffcb

View File

@ -325,14 +325,14 @@ void dumpBlock(uint32_t start, uint32_t end)
memset(line, ' ', sizeof(line)); memset(line, ' ', sizeof(line));
char * pHex = line; char * pHex = line;
char * pChar = line + 58; char * pChar = line + 59;
for (uint32_t addr = start; (addr <= end); addr++) for (uint32_t addr = start; (addr <= end); addr++)
{ {
if (count == 0) if (count == 0)
{ {
//print out the address at the beginning of the line //print out the address at the beginning of the line
pHex = line; pHex = line;
pChar = line + 58; pChar = line + 59;
*pHex++ = hex[(addr >> 16) & 0x0f]; *pHex++ = hex[(addr >> 16) & 0x0f];
*pHex++ = hex[(addr >> 12) & 0x0f]; *pHex++ = hex[(addr >> 12) & 0x0f];
*pHex++ = hex[(addr >> 8) & 0x0f]; *pHex++ = hex[(addr >> 8) & 0x0f];