From 23f9f330695ece85322909f302080085a681bed4 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 30 Jun 2024 05:15:01 -0400 Subject: a8xd: print correct hex value in -a mode. --- a8xd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'a8xd.c') 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++] = ' '; -- cgit v1.2.3