aboutsummaryrefslogtreecommitdiff
path: root/development/dis/dis.1
blob: d1d9b862afb599bc4080204a51e2a3c2034cd449 (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
.\" 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 "DIS" 1 "2021-08-30" "0.6" "SlackBuilds.org"
.SH NAME
dis \- dis - statically tracing 6502 disassembler
.\" RST source for dis(1) man page. Convert with:
.
.\" rst2man.py dis.rst > dis.1
.
.\" rst2man.py comes from the SBo development/docutils package.
.
.SH SYNOPSIS
.sp
dis [\fI\-options\fP] file ...
.SH DESCRIPTION
.sp
dis creates XASM/MADS\-compatible assembly code from a memory dump or
an executable. dis statically traces execution paths starting from
code entry points to mark which memory locations contain code. All
other memory is treated as data. dis traces through JMP, JSR and BXX
branch instructions. It stops at RTS, RTI and illegal instructions.
.sp
dis automatically determines common code entry points when
disassembling Atari XEX/SAP files and Commodore 64 PRG files.
.sp
The disassembly is written to standard output.
.SH OPTIONS
.INDENT 0.0
.TP
.B \fI\-c\fP \fBL=XXXX\fP
Code entry point(s)
.TP
.B \fI\-d\fP \fBL=XXXX\fP
Data location(s) \- Disallow tracing as code
.TP
.B \fI\-C\fP \fBL=XXXX\fP
Constant value(s)
.TP
.B \fI\-v\fP \fBL=XXXX\fP
Vector(s), e.g. FFFA
.TP
.B \fI\-A\fP \fBL=XXXX\fP
Data address(es)
.TP
.B \fI\-P\fP \fBL=XXXX\fP
Code address(es) \- Trace target as code
.TP
.B \fI\-o\fP \fBL=XXXX\fP
Origin for raw files
.TP
.B \fI\-l\fP
Create labels
.TP
.B \fI\-i\fP
Emit illegal opcodes
.TP
.B \fI\-t\fP \fBTYPE\fP
Disassemble as TYPE:
.INDENT 7.0
.INDENT 3.5
.sp
.nf
.ft C
xex \- Atari executable (\-x)
sap \- Atari SAP file
prg \- Commodore 64 executable (\-p)
raw \- raw memory
.ft P
.fi
.UNINDENT
.UNINDENT
.TP
.B \fI\-x\fP
Disassemble as Atari executable (same as \fB\-t xex\fP)
.TP
.B \fI\-p\fP
Disassemble as Commodore 64 executable (same as \fB\-t prg\fP)
.TP
.B \fI\-comment\fP
Emit comments
.TP
.B \fI\-call\fP
Emit callers
.TP
.B \fI\-access\fP
Emit accessors
.TP
.B \fI\-extern\fP
Emit labels for out\-of\-range addresses
.TP
.B \fI\-rangelabels\fP
Emit labels for ranges instead of base+offset
.TP
.B \fI\-verbose\fP
Print info to STDERR
.TP
.B \fI\-dump\fP
Print options in format for \-a
.TP
.B \fI\-dumpequ\fP
Print equ statements for all labels
.TP
.B \fI\-headers\fP
Print opt h\- if disabled with \-noheaders
.TP
.B \fI\-a\fP \fBFILE\fP
Read options from FILE. Lines are: OPTION VALUE. If \fBFILE\fP
is not found, it will be searched for in \fB/usr/share/dis\fP instead.
.UNINDENT
.sp
Addresses may include a range, e.g. table=$300+F
.sp
Addresses may include xex segment number, e.g. 3:1FAE
.sp
Addresses for \-A and \-P may be given as HIGH_LOW, e.g. 3C64_3C62
.SH FILES
.INDENT 0.0
.TP
.B \fB/usr/share/dis/*.dop\fP
Predefined option files for various platforms, for use with \fI\-a\fP\&.
These include:
.INDENT 7.0
.INDENT 3.5
sys.dop, hardware.dop: for use with Atari 8\-bit object code.
.sp
6510.dop, cia.dop, sid.dop, vic.dop: for use with Commodore 64 object code.
.UNINDENT
.UNINDENT
.UNINDENT
.SH COPYRIGHT
.sp
See the file /usr/doc/dis\-0.6/LICENSE.md for license information.
.SH AUTHORS
.sp
dis was written by Lyren Brown.
.sp
This man page written for the SlackBuilds.org project
by B. Watson, and is licensed under the WTFPL.
.SH SEE ALSO
.sp
The full documentation for \fBdis\fP:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
/usr/doc/dis\-0.6/README.md
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
The AtariAge thread:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
http://atariage.com/forums/topic/232658\-statically\-tracing\-6502\-disassembler/
.ft P
.fi
.UNINDENT
.UNINDENT
.\" Generated by docutils manpage writer.
.