whscullin / apple2js

An Apple II emulator originally written in Javascript, now being converted to TypeScript
http://www.scullinsteel.com/apple2/
MIT License
438 stars 57 forks source link

65C02 emulation does not include all functional/cycle count differences #39

Closed iflan closed 2 years ago

iflan commented 3 years ago

When browsing http://www.6502.org/tutorials/65c02opcodes.html, as one does, I noticed that the 65C02 emulation in apple2js does not cover all of the differences between the 6502 and 65C02 mentioned in these sections:

It also doesn't cover the bogus instructions on the 6502, but I'm guessing that's OK.

whscullin commented 2 years ago

This was largely addressed by https://github.com/whscullin/apple2js/pull/88. I need to audit the 65C02 NOPs still, and I'm still on the fence about undocumented opcodes.

whscullin commented 2 years ago

The rest of this was addressed in https://github.com/whscullin/apple2js/pull/92, all opcodes, including undocumented, are implemented and cycle correct.