sim65 is the only solution as part of the toolchain to execute code. The
binary needs to be compiled with
--target sim6502 or
The simulator is called as follows:
Usage: sim65 [options] file [arguments] Short options: -h Help (this text) -c Print amount of executed CPU cycles -v Increase verbosity -V Print the simulator version number -x <num> Exit simulator after <num> cycles Long options: --help Help (this text) --cycles Print amount of executed CPU cycles --verbose Increase verbosity --version Print the simulator version number
Here is a description of all the command line options:
Print the short option summary shown above.
Print the number of executed CPU cycles when the program terminates.
The cycles for the final "
jmp exit" are not included in this
Increase the simulator verbosity.
Print the version number of the utility. When submitting a bug report, please include the operating system you're using, and the compiler version.
Exit simulator after num cycles.
The simulator will read one binary file per invocation and can log the program loading and paravirtualization calls to stderr.
Example output for the command
sim65 --verbose --verbose samples/gunzip65
Loaded `samples/gunzip65' at $0200-$151F PVWrite ($0001, $13C9, $000F) GZIP file name:PVWrite ($0001, $151F, $0001) PVRead ($0000, $FFD7, $0001) PVOpen ("", $0001) PVRead ($0003, $1520, $6590) PVClose ($0003) PVWrite ($0001, $13D9, $000F) Not GZIP formatPVWrite ($0001, $151F, $0001) PVExit ($01)
sim65 (and all cc65 binutils) are (C) Copyright 1998-2000 Ullrich von Bassewitz. For usage of the binaries and/or sources the following conditions do apply:
This software is provided 'as-is', without any expressed or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: