Not sure why I made this yet, but I enjoyed the process and now I feel a lot more comfortable with the 6502 instruction set
Available at:
https://github.com/bencoder/6502I added a basic console IO interface and got Wozmon working on it
Notes:
- Haven't done anything clever with opcode decoding, just a big switch statement
- It passes the Klaus functional tests
- Cycle counts are probably not accurate, haven't been thoroughly tested (just basing it on memory read/writes, with +1 adjustment when paging in indexed addressing modes)
- illegal/undocumented opcodes haven't been implemented
- undefined behaviour (I think that's only the weird decimal mode flags) hasn't been implemented/tested
Comments/Criticism welcome