aboutsummaryrefslogtreecommitdiff
path: root/a8xd.c
diff options
context:
space:
mode:
Diffstat (limited to 'a8xd.c')
-rw-r--r--a8xd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/a8xd.c b/a8xd.c
index 534267c..f887d05 100644
--- a/a8xd.c
+++ b/a8xd.c
@@ -244,12 +244,12 @@ void dump_line(const unsigned char *buf, int len) {
while(len) {
c = *buf;
- if(screencodes) c = screen2ata(c);
inv = !graphics && (c & 0x80);
+ if(screencodes) c = screen2ata(c);
if(color) hpos += sprintf(hex + hpos, "%s", get_color(c));
if(inv) hpos += sprintf(hex + hpos, "%s", inverse_on);
- hpos += sprintf(hex + hpos, byte_format, c);
+ hpos += sprintf(hex + hpos, byte_format, *buf); /* *buf here, not c! */
if(color || inv) hpos += sprintf(hex + hpos, "%s", color_off);
hex[hpos++] = ' ';
if(count - len == 7) hex[hpos++] = ' ';