1 <!doctype linuxdoc system> <!-- -*- text-mode -*- -->
5 <title>sim65 Users Guide
6 <author><url url="mailto:polluks@sdf.lonestar.org" name="Stefan A. Haubenthal">
10 sim65 is a simulator for 6502 and 65C02 CPUs. It allows to test target
14 <!-- Table of contents -->
17 <!-- Begin the document -->
22 sim65 is the only solution as part of the toolchain to execute code. The
23 binary needs to be compiled with <tt/--target sim6502/ or <tt/--target sim65c02/.
28 The simulator is called as follows:
31 Usage: sim65 [options] file [arguments]
35 -V Print the simulator version number
36 -x <num> Exit simulator after <num> cycles
39 --help Help (this text)
40 --verbose Increase verbosity
41 --version Print the simulator version number
45 <sect1>Command line options in detail<p>
47 Here is a description of all the command line options:
51 <tag><tt>-h, --help</tt></tag>
53 Print the short option summary shown above.
56 <tag><tt>-v, --verbose</tt></tag>
58 Increase the simulator verbosity.
61 <tag><tt>-V, --version</tt></tag>
63 Print the version number of the utility. When submitting a bug report,
64 please include the operating system you're using, and the compiler
68 <tag><tt>-x num</tt></tag>
70 Exit simulator after num cycles.
74 <sect>Input and output<p>
76 The simulator will read one binary file per invocation and can log the
77 program loading and paravirtualization calls to stderr.
79 Example output for the command
81 sim65 --verbose --verbose samples/gunzip65
84 Loaded `samples/gunzip65' at $0200-$151F
85 PVWrite ($0001, $13C9, $000F)
86 GZIP file name:PVWrite ($0001, $151F, $0001)
88 PVRead ($0000, $FFD7, $0001)
90 PVRead ($0003, $1520, $6590)
92 PVWrite ($0001, $13D9, $000F)
93 Not GZIP formatPVWrite ($0001, $151F, $0001)
102 sim65 (and all cc65 binutils) are (C) Copyright 1998-2000 Ullrich von
103 Bassewitz. For usage of the binaries and/or sources the following conditions
106 This software is provided 'as-is', without any expressed or implied
107 warranty. In no event will the authors be held liable for any damages
108 arising from the use of this software.
110 Permission is granted to anyone to use this software for any purpose,
111 including commercial applications, and to alter it and redistribute it
112 freely, subject to the following restrictions:
115 <item> The origin of this software must not be misrepresented; you must not
116 claim that you wrote the original software. If you use this software
117 in a product, an acknowledgment in the product documentation would be
118 appreciated but is not required.
119 <item> Altered source versions must be plainly marked as such, and must not
120 be misrepresented as being the original software.
121 <item> This notice may not be removed or altered from any source