aboutsummaryrefslogtreecommitdiff
path: root/a8xd.1
blob: a02fc9e5e9bf27429bf975caa8899c40e8c50f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "A8XD" 1 "2024-06-30" "0.2.1" "Urchlay's Atari 8-bit Tools"
.SH NAME
a8xd \- Atari 8-bit ATASCII-aware hex dump
.SH SYNOPSIS
.sp
\fIa8xd\fP [\fB\-i\fP] [\fB\-l\fP \fIlimit\fP] [\fB\-m\fP] [\fB\-o\fP offset] [\fB\-s\fP \fI[\-]seek\fP] [\fB\-u\fP] [\fB\-v\fP] [\fIinfile\fP]
.SH DESCRIPTION
.sp
\fBa8xd\fP is a hex dump utility, similar to \fBxxd\fP(1), but it
understands and prints ATASCII characters rather than ASCII.
.sp
The ATASCII codes are converted to UTF\-8, in the same way as
\fBa8cat\fP(1). Codes with the high bit set are displayed in inverse
video, using ANSI/VT\-100 escape sequences.
.sp
By default, the output is colorized:
.INDENT 0.0
.INDENT 3.5
.INDENT 0.0
.IP \(bu 2
Normal characters are green. This includes alphanumerics, spaces, and
punctuation.
.IP \(bu 2
Codes \fB$00\fP (null, or ATASCII heart) and \fB$9B\fP (EOL) are red.
.IP \(bu 2
Control characters are yellow. This includes codes \fB$01\fP to \fB$1F\fP
(control + letters/punctuation, escape, and arrow keys), \fB$60\fP, \fB$7B\fP, \fB$7D\fP
(clear screen), \fB$7E\fP (backspace), and \fB$7F\fP (tab).
.UNINDENT
.UNINDENT
.UNINDENT
.sp
The colors and inverse rendering apply to both the ATASCII and hex bytes.
.sp
Without \fIinfile\fP, or if \fIinfile\fP is \fB\-\fP, \fBa8xd\fP reads from standard input.
.SH OPTIONS
.INDENT 0.0
.TP
.B  \-a
ANTIC mode: treat the input as screen bytes. Can usefully be combined
with \fB\-g\fP\&.
.TP
.B  \-i
Print XL/XE International Character Set conversions instead of ATASCII.
.TP
.B  \-g
Graphics mode. Changes the colorization so it looks like \fIGRAPHICS 1\fP (or 2)
on the Atari.
.UNINDENT
.INDENT 0.0
.TP
.B \-l \fIlen\fP
Stop after dumping \fIlen\fP bytes. \fIlen\fP may be given in decimal or hex (with
leading \fI0x\fP or \fI$\fP).
.UNINDENT
.INDENT 0.0
.TP
.B  \-m
Monochrome mode. Disables color, but ATASCII characters with the high bit
set are still displayed in inverse.
.UNINDENT
.INDENT 0.0
.TP
.B \-o \fIoffset\fP
Add \fIoffset\fP to displayed file position. \fIoffset\fP can be given in decimal
or hex (with leading \fI0x\fP or \fI$\fP). Negative offsets are allowed, but they
will be printed as very large positive numbers in the output (this matches
\fBxxd\fP\(aqs behaviour).
.TP
.B \-s \fI[\-]seek\fP
Start at \fIseek\fP bytes. Without \fI\-\fP, this is an absolute offset. With \fI\-\fP,
it\(aqs relative to the end of the file. The \fI\-\fP option won\(aqt work when
reading from standard input. \fIseek\fP may be given in decimal or hex
(with leading \fI0x\fP or \fI$\fP).
.UNINDENT
.INDENT 0.0
.TP
.B  \-u
Use uppercase letters for hex digits; the default is lowercase.
.TP
.B  \-v
Verbose. Shows various debug messages that are probably only useful
if you\(aqre hacking on \fBa8xd\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B \fB\-\-\fP
End of options; the next argument is the filename. Use this if you\(aqre
trying to work with files whose names begin with \fI\-\fP\&.
.TP
.B \fB\-h\fP, \fB\-\-help\fP
Show built\-in help and exit.
.TP
.B \fB\-\-version\fP
Show version number and exit.
.UNINDENT
.SH NOTES
.sp
\fBa8xd\fP requires the terminal emulator to support UTF\-8 and use a
font with the necessary glyphs. The author has tested extensively
with \fBurxvt\fP(1) (aka \fBrxvt\-unicode\fP) and \fBxterm\fP(1), using
the \fIDeja Vu Sans Mono\fP, \fIJetBrains Mono\fP, \fILiberation Mono\fP,
and \fISymbola\fP fonts. Also \fBkitty\fP(1), \fBxfce4\-terminal\fP(1),
KDE/Plasma 5\(aqs \fBkonsole\fP(1), \fBgnome\-terminal\fP(1) 3.43.90, and
\fBst\fP(1) from suckless.org have been lightly tested and seem to work
fine. Even the Linux console works, except that you won\(aqt be able to
find a console font with all the necessary glyphs (I may create one
someday).
.sp
\fBa8xd\fP only supports terminals that use ANSI\-style escape sequences
for color and inverse video. This isn\(aqt much of a limitation, since
all modern X, Wayland, Mac, etc terminal emulators have support for
this... but it might annoy you if you\(aqre trying to use an Atari ST
with a VT52 emulator as a serial terminal. Sorry.
.sp
\fBa8xd\fP supports a useful subset of \fBxxd\fP(1) options. The main things
missing are:
.INDENT 0.0
.IP \(bu 2
\fB\-r\fP (revert).
.IP \(bu 2
\fB\-include\fP (output as C include) and all options related to it.
.IP \(bu 2
\fB\-g\fP (grouping; \fBa8xd\fP always uses a group size of 1 byte).
.IP \(bu 2
\fB\-E\fP (EBCDIC mode).
.IP \(bu 2
\fB\-p\fP (PostScript/continuous dump).
.IP \(bu 2
\fB\-cols\fP (\fBa8xd\fP only supports 16 column dumps).
.IP \(bu 2
\fB\-b\fP (bits mode).
.IP \(bu 2
support for files larger than 2GB. This won\(aqt be a problem for Atari 8\-bit\-related files!
.IP \(bu 2
replacing duplicate lines in the output with \fB*\fP\&.
.UNINDENT
.SH COPYRIGHT
.sp
WTFPL. See \fI\%http://www.wtfpl.net/txt/copying/\fP for details.
.SH AUTHOR
.INDENT 0.0
.IP B. 3
Watson <\fI\%urchlay@slackware.uk\fP>; Urchlay on irc.libera.chat \fI##atari\fP\&.
.UNINDENT
.SH SEE ALSO
.sp
\fBa8eol\fP(1),
\fBa8utf8\fP(1),
\fBatr2xfd\fP(1),
\fBatrsize\fP(1),
\fBaxe\fP(1),
\fBblob2c\fP(1),
\fBblob2xex\fP(1),
\fBcart2xex\fP(1),
\fBcxrefbas\fP(1),
\fBdasm2atasm\fP(1),
\fBdumpbas\fP(1),
\fBf2toxex\fP(1),
\fBfenders\fP(1),
\fBlistbas\fP(1),
\fBprotbas\fP(1),
\fBrenumbas\fP(1),
\fBrom2cart\fP(1),
\fBunmac65\fP(1),
\fBunprotbas\fP(1),
\fBvxrefbas\fP(1),
\fBxexamine\fP(1),
\fBxexcat\fP(1),
\fBxexsplit\fP(1),
\fBxfd2atr\fP(1),
\fBxex\fP(5),
\fBatascii\fP(7).
.sp
Any good Atari 8\-bit book: \fIDe Re Atari\fP, \fIThe Atari BASIC  Reference
Manual\fP,  the  \fIOS Users\(aq Guide\fP, \fIMapping the Atari\fP, etc.
.\" Generated by docutils manpage writer.
.