From a60f99848f2d4dbdcc9d46fac4f99e08b90ec2f3 Mon Sep 17 00:00:00 2001 From: toxieainc Date: Mon, 8 Aug 2022 09:18:59 +0200 Subject: [PATCH] Revert "port some changes from MAME/MESS" This reverts commit b5f3d8b68e1ae62a08b00a730b6b8150758c0af3. --- Src/CPU/Z80/Z80.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Src/CPU/Z80/Z80.cpp b/Src/CPU/Z80/Z80.cpp index 3967ffd..370f94c 100644 --- a/Src/CPU/Z80/Z80.cpp +++ b/Src/CPU/Z80/Z80.cpp @@ -2698,7 +2698,7 @@ int CZ80::Run(int numCycles) break; case 0x71: /* OUT (C),0 */ cycles -= cycleTables[2][0x71]; - OUTPUT(lreg(BC), lreg(0)); + OUTPUT(lreg(BC), 0); break; case 0x72: /* SBC HL,SP */ cycles -= cycleTables[2][0x72]; @@ -2821,8 +2821,6 @@ int CZ80::Run(int numCycles) cycles -= cycleTables[2][0xB0]; acu = hreg(AF); BC &= 0xffff; - if (BC == 0) - BC = 0x10000; do { acu = GetBYTE_pp(HL); PutBYTE_pp(DE, acu); @@ -2834,8 +2832,6 @@ int CZ80::Run(int numCycles) cycles -= cycleTables[2][0xB1]; acu = hreg(AF); BC &= 0xffff; - if (BC == 0) - BC = 0x10000; do { temp = GetBYTE_pp(HL); op = --BC != 0; @@ -2872,8 +2868,6 @@ int CZ80::Run(int numCycles) case 0xB8: /* LDDR */ cycles -= cycleTables[2][0xB8]; BC &= 0xffff; - if (BC == 0) - BC = 0x10000; do { acu = GetBYTE_mm(HL); PutBYTE_mm(DE, acu); @@ -2885,8 +2879,6 @@ int CZ80::Run(int numCycles) cycles -= cycleTables[2][0xB9]; acu = hreg(AF); BC &= 0xffff; - if (BC == 0) - BC = 0x10000; do { temp = GetBYTE_mm(HL); op = --BC != 0; @@ -3513,7 +3505,7 @@ int CZ80::Run(int numCycles) break; case 0xCB: /* CB prefix */ adr = IY + (signed char) GetBYTE_pp(pc); - //adr = adr; + adr = adr; op = GetBYTE(pc); cycles -= cycleTables[4][op]; switch (op & 7) {