run6502, lib6502 — 6502 microprocessor emulator
run6502 command emulates the execution of a 6502
microprocessor. It creates a memory image from the contents of one or
more files on the command line and then simulates a power-on hardware
reset to begin execution.
The emulator provides two system models:
- An embedded 6502 processor with 64 kilobytes of RAM, no
memory-mapped hardware, and no input-output capabilities.
- An Acorn 'BBC Model B' hardware with 32 kilobytes of RAM, 16 kilo-
bytes of paged language ROMs, and 16 kilobytes of operating system
ROM. A few MOS calls are intercepted to provide keyboard input and
screen output via stdin and stdout.
Limited interaction with the former is possible; see the manual page
for details.
lib6502 is a C library that provides the actual emulation. A
program can use it to create and execute any number of 6502 processors
simultaneously.
Download the source code: lib6502-1.1.tar.gz
Browse the source code: lib6502-1.1
Read the manual pages:
run6502.1.html,
lib6502.3.html
lib6502 is distributed under the MIT license: it will not
infect your project with a contagious disease the instant you decide
to use it.
If you find bugs or have suggestions, please send them to Ian at the
domain name of this web site. Thanks!
2010-07-23 (v1.1) Many thanks to Steve Flintham for spotting a bug in SBC that set C and V incorrectly.