From 7b10eddc18b8464331a0773f8ccc9cece045e5e3 Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Wed, 31 Dec 2014 16:44:45 +0000 Subject: [PATCH] issue #21: remove offset from addresses in the peep command output A constant offset of 0xe000 was added purely to assist in formatting the addresses which can be replaced by reusing the printIntegerInBase function. Signed-off-by: Pat Thoyts --- src/bitlash-eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitlash-eeprom.c b/src/bitlash-eeprom.c index 0283f41..00b4dbe 100644 --- a/src/bitlash-eeprom.c +++ b/src/bitlash-eeprom.c @@ -249,7 +249,7 @@ void cmd_peep(void) { int i=0; while (i <= ENDEEPROM) { - if (!(i&63)) {speol(); printHex(i+0xe000); spb(':'); } + if (!(i&63)) {speol(); printIntegerInBase(i, 16, 4, '0'); spb(':'); } if (!(i&7)) spb(' '); if (!(i&3)) spb(' '); byte c = eeread(i) & 0xff;