jace icon indicating copy to clipboard operation
jace copied to clipboard

6502/65c02 timing

Open badvision opened this issue 10 years ago • 2 comments

As a power developer, I want to ensure that Jace can match the exact CPU timing of either a 6502 or 65c02 CPU. If any opcode does not use correct timing, compile tests should log the issue. While using the emulator I would like the option to switch between the CPU timing modes.

badvision avatar Feb 07 '16 22:02 badvision

Be able to switch between 6502 and 65C02 will be a nice feature. But not only for timing but also for OPCODES!.

(and why not later, support "exotic" CPU from 6502 family)

Archange427 avatar Feb 08 '16 11:02 Archange427

Right now the way that the CPU class is structured using enumeration, it would be hard to make a class that neatly provides a 6502 abstraction and then a subsequent sub-class for 65c02, 65sc02, etc. The issue I would run into is that I wrote it to be fast with the least amount of syntax (for java) and this would require either an expansion of the code to support cleanly, or perhaps a lot of duplication across classes. I like the idea though but I might make a separate issue for breaking out the 65c02 class into smaller classes since it's already quite large as it is with many nested sub-classes to support things like commands and addressing modes.

badvision avatar Feb 20 '16 17:02 badvision