From a2d0ed214e5d3f10ff83325de0737ba74f872752 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 26 Oct 2022 02:46:40 +0200 Subject: [PATCH] Some NEC V20 fixes. --- src/cpu/808x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cpu/808x.c b/src/cpu/808x.c index eed504196..0b77b645b 100644 --- a/src/cpu/808x.c +++ b/src/cpu/808x.c @@ -1666,6 +1666,7 @@ execx86(int cycs) if (!repeating) { cpu_state.oldpc = cpu_state.pc; opcode = pfq_fetchb(); + handled = 0; oldc = cpu_state.flags & C_FLAG; if (clear_lock) { in_lock = 0; @@ -1882,7 +1883,7 @@ execx86(int cycs) case 0x0F: case 0x17: case 0x1F: /* POP seg */ - if (is_nec && opcode == 0x0F) { + if (is_nec && (opcode == 0x0F)) { uint8_t orig_opcode = opcode; opcode = pfq_fetchb(); switch (opcode) {