[SIM65] Support undocumented opcodes for 6502

This PR is mostly a complete rewrite of the emulator for 6502/65c02 opcodes.
It provides an easier to maintain implementation of the instructions, by using few macros rather than having hand-written code for each function.
All undocumented, previously missing opcodes for 6502 are also implemented.
The patch also includes a detailed documentation of those opcodes, for reference to developers.
This PR should fix one of the milestones listed here for the next version of CC65:

https://github.com/cc65/wiki/wiki/Before-the-next-release
This commit is contained in:
Carlo Bramini
2024-01-04 13:12:52 +01:00
committed by Carlo Bramini
parent 75461e1319
commit b04d79b1da
5 changed files with 1805 additions and 925 deletions

View File

@@ -47,7 +47,8 @@
/* Supported CPUs */
typedef enum CPUType {
CPU_6502,
CPU_65C02
CPU_65C02,
CPU_6502X
} CPUType;
/* Current CPU */