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
|
.. RST source for dis(1) man page. Convert with:
.. rst2man.py dis.rst > dis.1
.. rst2man.py comes from the SBo development/docutils package.
.. |version| replace:: 0.6
.. |date| date::
===
dis
===
------------------------------------------
dis - statically tracing 6502 disassembler
------------------------------------------
:Manual section: 1
:Manual group: SlackBuilds.org
:Date: |date|
:Version: |version|
SYNOPSIS
========
dis [*-options*] file ...
DESCRIPTION
===========
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.
dis automatically determines common code entry points when
disassembling Atari XEX/SAP files and Commodore 64 PRG files.
The disassembly is written to standard output.
OPTIONS
=======
*-c* **L=XXXX**
Code entry point(s)
*-d* **L=XXXX**
Data location(s) - Disallow tracing as code
*-C* **L=XXXX**
Constant value(s)
*-v* **L=XXXX**
Vector(s), e.g. FFFA
*-A* **L=XXXX**
Data address(es)
*-P* **L=XXXX**
Code address(es) - Trace target as code
*-o* **L=XXXX**
Origin for raw files
*-l*
Create labels
*-i*
Emit illegal opcodes
*-t* **TYPE**
Disassemble as TYPE::
xex - Atari executable (-x)
sap - Atari SAP file
prg - Commodore 64 executable (-p)
raw - raw memory
*-x*
Disassemble as Atari executable (same as **-t xex**)
*-p*
Disassemble as Commodore 64 executable (same as **-t prg**)
*-comment*
Emit comments
*-call*
Emit callers
*-access*
Emit accessors
*-extern*
Emit labels for out-of-range addresses
*-rangelabels*
Emit labels for ranges instead of base+offset
*-verbose*
Print info to STDERR
*-dump*
Print options in format for -a
*-dumpequ*
Print equ statements for all labels
*-headers*
Print opt h- if disabled with -noheaders
*-a* **FILE**
Read options from FILE. Lines are: OPTION VALUE. If **FILE**
is not found, it will be searched for in **/usr/share/dis** instead.
Addresses may include a range, e.g. table=$300+F
Addresses may include xex segment number, e.g. 3:1FAE
Addresses for -A and -P may be given as HIGH_LOW, e.g. 3C64_3C62
FILES
=====
**/usr/share/dis/\*.dop**
Predefined option files for various platforms, for use with *-a*.
These include:
sys.dop, hardware.dop: for use with Atari 8-bit object code.
6510.dop, cia.dop, sid.dop, vic.dop: for use with Commodore 64 object code.
COPYRIGHT
=========
See the file /usr/doc/dis-|version|/LICENSE.md for license information.
AUTHORS
=======
dis was written by Lyren Brown.
This man page written for the SlackBuilds.org project
by B. Watson, and is licensed under the WTFPL.
SEE ALSO
========
The full documentation for **dis**::
/usr/doc/dis-0.6/README.md
The AtariAge thread::
http://atariage.com/forums/topic/232658-statically-tracing-6502-disassembler/
|