From dc43f5605b69900464178e7a913b6fc86e6c7e93 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 20 Apr 2022 08:40:56 -0400 Subject: [PATCH] Give MOVEPs precedence. --- InstructionSets/68k/Decoder.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/InstructionSets/68k/Decoder.cpp b/InstructionSets/68k/Decoder.cpp index dee49bfaf..06a10ca63 100644 --- a/InstructionSets/68k/Decoder.cpp +++ b/InstructionSets/68k/Decoder.cpp @@ -685,16 +685,6 @@ Preinstruction Predecoder::decode0(uint16_t instruction) { default: break; } - switch(instruction & 0x1c0) { - case 0x100: Decode(Op::BTST); // 4-62 (p166) - case 0x180: Decode(Op::BCLR); // 4-31 (p135) - - case 0x140: Decode(Op::BCHG); // 4-28 (p132) - case 0x1c0: Decode(Op::BSET); // 4-57 (p161) - - default: break; - } - switch(instruction & 0x1f8) { // 4-133 (p237) case 0x108: Decode(MOVEPtoRw); @@ -705,6 +695,16 @@ Preinstruction Predecoder::decode0(uint16_t instruction) { default: break; } + switch(instruction & 0x1c0) { + case 0x100: Decode(Op::BTST); // 4-62 (p166) + case 0x180: Decode(Op::BCLR); // 4-31 (p135) + + case 0x140: Decode(Op::BCHG); // 4-28 (p132) + case 0x1c0: Decode(Op::BSET); // 4-57 (p161) + + default: break; + } + return Preinstruction(); }