valerino / v65xx

6502/10 emulator, used in my proof of concept c64 emulator vc64-emu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v65xx

my MOS 6502/6510/65xxx emulator/interpreter!

features

  • clean code
    • since i myself am a newbie in writing emulators, i've explicitly choosen to prefer clean to performant code!
  • cycle accurate
  • built-in debugger

build

git clone https://github.com/valerino/v65xx
cd v65xx

# clone also the following repo
# (no submodules on purpose, they're evil and just add complexity, period.)
git clone https://github.com/valerino/emushared

# cd into emushared, follow build instructions in its README.md (including setting up environment variables)

# get back to v65xx folder and build
mkdir build && cd build
cmake ..
make

# setup environment variables to be used in external projects
export V65XX_INCLUDE_PATH=/path/to/v65xx
export V65XX_LIB_PATH=/path/to/v65xx/build

sample usage

my proof of concept c64 emulator

STATUS

  • emulates all documented and undocumented (to test) opcodes
  • passes the Klaus's functional tests from 6502.org (provided in this repo)!
    • call reset(true) after constructing the cpu object to load the functional tests into the emulated memory.

references

About

6502/10 emulator, used in my proof of concept c64 emulator vc64-emu


Languages

Language:C++ 99.6%Language:CMake 0.4%