From dbc955290832d1ac96d55235db8ea33cf73e711c Mon Sep 17 00:00:00 2001 From: John Date: Tue, 25 Jun 2024 21:19:48 -0500 Subject: [PATCH] bugfix: XOR decoding as OR, and vice versa --- src/cpu/disasm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpu/disasm.rs b/src/cpu/disasm.rs index 7bcfc1e..c7c0d95 100644 --- a/src/cpu/disasm.rs +++ b/src/cpu/disasm.rs @@ -200,8 +200,8 @@ impl From for Insn { 2 => Insn::Sub(low.into()), 3 => Insn::Sbc(low.into()), 4 => Insn::And(low.into()), - 5 => Insn::Or(low.into()), - 6 => Insn::Xor(low.into()), + 5 => Insn::Xor(low.into()), + 6 => Insn::Or(low.into()), 7 => Insn::Cp(low.into()), _ => unreachable!(), },