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 are 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() have to be populated by the user with bus access callbacks.
Execute the next instruction.
Perform the CPU reset.
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.