Skip to content

wyvernSemi/cpu6502

Repository files navigation

cpu6502: A 6502 Instruction Set Simulator written in C++.

Contains a C++ model of the MOS 6502 microprocessor with compilation options to configure the model, and an optional command line interface. A test program (modified) from Klaus Dormann (https://github.com/Klaus2m5/6502_65C02_functional_tests) is also present to test the instructions' validity. A simple API is provided for integration with other models or applications—see the manual in doc/user_guide.pdf and the header file src/cpu6502_api.h for more information. Support is provided for either building under MSVC 2010 (cpu6502.sln) or under Linux (makefile).

The model has been integrated and tested with BeebEm (v4.14) as part of its validation, with the simple steps needed documented in the manual. As well as being integrated with BeebEm, a port of the APPLE I system monitor (aka WozMon, written by Steve Wozniac) is provide and will run on an example model incorporating cpu6502 (see wozmon directory), and Microsoft Basic is also supported on this same model (see msbasic directory). Both use the CC65 toolchain to assemble and link the code, and makefiles in each directory are provided to build and run the model and the assembled programs under Linux or under Windows with MSYS2/mingw-w64 (make run).

simon@anita-simulators.org.uk

www.anita-simulators.org.uk/wyvernsemi