- Notifications
You must be signed in to change notification settings - Fork0
leslie255/emu6502
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A reference sheet for the MOS 6502 instruction set can be found at:https://www.masswerk.at/6502/6502_instruction_set.html
There is aMemWriter
struct and it's associated functions inmain.c
to write things into the emulator memory. Write the program into the memory, and then build and run the project by:
$ mkdir bin$ make all&& ./bin/emu6502
There is also a--dbg
option for instruction-by-instruction running while printing the entire stack, values of registers, etc.
Note that the emulator likely won't work in big endian platforms.
All the instructions have been implemented by now, but there are still some extra work to do to make the emulator actually useful, namely:
- IO & Interrupts(Currently
BRK
andRTI
instructions technically work, but the emulator cannot be recovered from an interrupt) - Clockspeed limiter
- Loading from memory/disk snapshots
- An assembler
This project is licensed under GPLv3, earlier versions that did not have theLICENSE.txt
is licensed under ALL RIGHTS RESERVED.