Skip to content
forked from makarcz/vm6502

Virtual Machine, quantum computational super set of a MOS 6502 emulator.

License

Notifications You must be signed in to change notification settings

vm6502q/vm6502q

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.