Yazwh0 / BitMagic

Repository that brings in other submodules for a complete envrionment
GNU General Public License v3.0
12 stars 1 forks source link

Opcodes that both read and write to IO areas that have 'side effects' do not work as hardware. #117

Closed Yazwh0 closed 2 weeks ago

Yazwh0 commented 4 months ago

For opcodes like ror and inc, the CPU actually reads the memory location twice, while the emulator only does this once.

So if the location has a side effect from being read, such as DATA0, the outcome will be incorrect.

Same as https://github.com/X16Community/x16-emulator/issues/277