emustudio / emuStudio

Universal emulation platform and framework.
https://www.emustudio.net/
GNU General Public License v3.0
40 stars 9 forks source link

[#260] Fix Z80 instructions #263

Closed vbmacher closed 2 years ago

vbmacher commented 2 years ago
vbmacher commented 2 years ago

LDIR -> NOP' tests still fail

image image

vbmacher commented 2 years ago

https://spectrumcomputing.co.uk/forums/viewtopic.php?p=94582

vbmacher commented 2 years ago

These tests are set up in such a way that the instruction overwrites itself, effectively turning the instruction into ED prefixed NOP. This in turn has the effect that it reveals how flags are set in case the instruction repeats itself, rather than how they are set when it finishes.

Similar test was written which tests all block instructions by interrupting them. But because that one depends on perfect emulation of timing, which may be difficult to achieve at first, this one was added to my test suite to complement that.

vbmacher commented 2 years ago

https://github.com/hoglet67/Z80Decoder/wiki/Undocumented-Flags

vbmacher commented 2 years ago

https://gist.github.com/drhelius/8497817

vbmacher commented 2 years ago

https://stardot.org.uk/forums/viewtopic.php?t=15464&start=30