diff --git a/InstructionSets/M68k/Decoder.cpp b/InstructionSets/M68k/Decoder.cpp index ce2359c19..e63f29f6a 100644 --- a/InstructionSets/M68k/Decoder.cpp +++ b/InstructionSets/M68k/Decoder.cpp @@ -71,7 +71,7 @@ uint32_t operand_mask(AddressingMode mode1, AddressingMode mode2) { /// immediate operand. template constexpr Operation Predecoder::operation(OpT op) { - if(op < OpT(Operation::Max)) { + if(op <= OpT(Operation::Max)) { return Operation(op); } @@ -445,6 +445,7 @@ template uint32_t Predecoder::invalid_operands() { case OpT(Operation::RTS): case OpT(Operation::TRAPV): case OpT(Operation::RTR): + case OpT(Operation::RESET): return ~NoOperandMask::value; case OpT(Operation::UNLINK):