6502 icon indicating copy to clipboard operation
6502 copied to clipboard

NMOS HMOS 6502 accuracy

Open miniupnp opened this issue 6 years ago • 5 comments

ASL, INC and possibly other read/write instructions do two writes on an original 6502. They first write the original value, then the modified one. The CMOS 65C02 behave differently.

That can cause issues when working on memory mapped I/O, such as what is done on the C64.

miniupnp avatar Nov 23 '19 15:11 miniupnp

I'm not sure about the Ricoh 2A03/2A07 of the NES

miniupnp avatar Nov 23 '19 15:11 miniupnp

Thanks, I've made several changes on the emulator since last version, I'll upload them to a new branch soon. I'm checking all instructions, memory access and cycles too.

redcode avatar Nov 23 '19 16:11 redcode

regarding the differences between the different 6502 versions, do you plan to add different modes for the emulator ?

miniupnp avatar Nov 23 '19 17:11 miniupnp

regarding the differences between the different 6502 versions, do you plan to add different modes for the emulator ?

Yes, of course. I'm working on my NES emu, and I want to use this core for other machines too. I'll add support for the undocumented opcodes and for other 6502 models.

redcode avatar Nov 23 '19 18:11 redcode

I've uploaded my most recent code to the branch WIP (it uses the "v0.1" branch of Z). I'll release a new version of this core in January 2020.

redcode avatar Nov 23 '19 18:11 redcode