mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-12 17:04:46 +00:00
Z80: Whoops: Correct broken CPDR implementation.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
d785b1eae7
commit
28ae32b8a2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user