Whoops: Roll back a "simplification" to the IX/IY + displacement handlers. Caused to failing "fuse" tests.

Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian.Conlon 2017-06-14 20:14:32 +01:00
parent e6eab35d0e
commit 1643844eaf

View File

@ -911,11 +911,13 @@ void EightBit::Z80::executeCB(int x, int y, int z, int p, int q) {
}
break;
}
if (m_prefixDD || m_prefixFD) {
if (m_prefixDD || m_prefixFD)
adjustSZP(DISPLACED());
else
adjustSZP(R(z));
if (m_prefixDD || m_prefixFD) {
cycles += 23;
} else {
adjustSZP(R(z));
cycles += 8;
if (z == 6)
cycles += 7;