Z80: Whoops: Correct broken CPDR implementation.

Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2020-11-16 17:09:19 +00:00
parent d785b1eae7
commit 28ae32b8a2

View File

@ -1049,9 +1049,8 @@ void EightBit::Z80::executeED(const int x, const int y, const int z, const int p
break;
case 7: // CPDR
if (cpdr(F(), A())) {
MEMPTR() = PC() - 2;
//MEMPTR() = --PC();
//--PC();
MEMPTR() = --PC();
--PC();
tick(5);
} else {
MEMPTR() = PC() - 2;