This simulator is based on the simualator of AK6502 CPU.
NMOS version of the CPU is simulated, cycle accurate. There's no undocumented intructions support,
invalid opcodes are decoded as nop
.
There're no dependencies, only make
and gcc
are needed. Simply type make
to build the library.
It can be installed to /usr/local/lib
via sudo make install
, along with the api header (to /usr/local/include
).
Library interface is available in simak65.h
header.
This structure holds the whole CPU state and callbacks to the bus operations. Fields bus.read() and bus.write() has to be implemented and populated by the user.
Execute the next instruction.
Perform the CPU reset. This operation must be performed pefored before executing first instruction.
Execute the non-maskable interrupt.
Execute the interrupt.
Initialize the library and the cpu state. The bus substructure of the CPU state has to be populated by the user.
See LICENSE for details.