diff options
author | B. Watson <urchlay@slackware.uk> | 2024-06-30 05:15:01 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-06-30 05:25:05 -0400 |
commit | 23f9f330695ece85322909f302080085a681bed4 (patch) | |
tree | 98edd58c884bca8e3013c9626ef24b0613d69bc3 | |
parent | beaa4db4b09bedde5ff8c72bd0ac3944c6483e98 (diff) | |
download | bw-atari8-tools-23f9f330695ece85322909f302080085a681bed4.tar.gz |
a8xd: print correct hex value in -a mode.
-rw-r--r-- | a8xd.1 | 8 | ||||
-rw-r--r-- | a8xd.c | 4 | ||||
-rw-r--r-- | a8xd.rst | 8 |
3 files changed, 14 insertions, 6 deletions
@@ -70,8 +70,12 @@ ANTIC mode: treat the input as screen bytes (aka "internal codes") rather than ATASCII. Can usefully be combined with \fB\-g\fP\&. .TP .B \-g -Graphics mode. Changes the colorization so it looks like \fIGRAPHICS 1\fP (or 2) -on the Atari. +Graphics mode. Changes the character codes and colorization so it +looks like \fIGRAPHICS 1\fP (or 2) on the Atari. +.TP +.B \-G +\fINot yet implemeted\fP\&. Like \fB\-g\fP, but using the top half of the character set. This is +what you\(aqd see on the Atari with \fIGRAPHICS 1:POKE 756,226\fP\&. .TP .B \-i Print XL/XE International Character Set conversions instead of ATASCII. @@ -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++] = ' '; @@ -46,8 +46,12 @@ OPTIONS rather than ATASCII. Can usefully be combined with **-g**. -g - Graphics mode. Changes the colorization so it looks like *GRAPHICS 1* (or 2) - on the Atari. + Graphics mode. Changes the character codes and colorization so it + looks like *GRAPHICS 1* (or 2) on the Atari. + +-G + *Not yet implemeted*. Like **-g**, but using the top half of the character set. This is + what you'd see on the Atari with *GRAPHICS 1:POKE 756,226*. -i Print XL/XE International Character Set conversions instead of ATASCII. |