MOS 6502

From Libcpu

Jump to: navigation, search

The MOS 6502 front-end is fairly complete, but has some bugs and missing features:

  • the V flag is not emulated at all; it should be optional
  • decimal mode is not emulated at all; it should be optional
  • accessing D and I should optionally trap

The 6502 frontend is currently the reference frontend for CISC. Nevertheless, it has not been fully cleaned up and contains too much LLVM knowledge in certain areas. I'm also not too happy with the instruction decoding using tables. I'd rather do everything with switch(), so the compiler can optimize better, and we're less dependent on C.

6502 is maintained by Michael.

Personal tools