diff options
Diffstat (limited to 'a8xd.c')
-rw-r--r-- | a8xd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++] = ' '; |