Home

Awesome

VM6502-Q Emulator

VM6502-Q Build Status

This is a working 6502 emulator with support for quantum operations provided by qrack.

See ReadMe.txt for the original readme documentation.

Building

Clone qrack. Follow the instructions on that repository for installing qrack, including OpenCL support.

Specify the SDL2 include directory:

export SDLDIR=/usr/include/SDL2

(...Or wherever your SDL2 headers reside on your system.)

From qrack checkout directory, for the v7 API:

mkdir _build && cd _build && cmake -DENABLE_BCD=ON -DENABLE_ROT_API=ON -DENABLE_REG_GATES=ON .. && make install

For v6 API, the -D options are not necessary. The make install operation might require sudo privileges.

Then, make all in the vm6502q checkout directory. This will use the installed qrack library and headers.

Usage

Run ./vm65 -r file.dat or use make run from the examples repository.