From ad040f18b07c57825f11c4d7a8d9a662df24f14b Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 27 Apr 2020 03:07:50 +0200 Subject: [PATCH] Changed an accidental addition to the correct subtraction in the 808x DAS instruction, fixes XTIDE port reporting. --- src/cpu_common/808x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu_common/808x.c b/src/cpu_common/808x.c index 9bd0818bc..ca2b80979 100644 --- a/src/cpu_common/808x.c +++ b/src/cpu_common/808x.c @@ -1898,7 +1898,7 @@ execx86(int cycs) temp = !!(cpu_state.flags & A_FLAG); if ((cpu_state.flags & A_FLAG) || ((AL & 0xf) > 9)) { cpu_src = 6; - cpu_data = cpu_dest + cpu_src; + cpu_data = cpu_dest - cpu_src; set_of_sub(8); cpu_dest = cpu_data; set_af(1);