diff --git a/InstructionSets/M68k/Instruction.hpp b/InstructionSets/M68k/Instruction.hpp index 314729f8d..ce211dbec 100644 --- a/InstructionSets/M68k/Instruction.hpp +++ b/InstructionSets/M68k/Instruction.hpp @@ -104,9 +104,9 @@ enum class Operation: uint8_t { Max = RESET }; -template -constexpr bool requires_supervisor(Operation op) { - switch(op) { +template +constexpr bool requires_supervisor(Operation r_op = Operation::Undefined) { + switch(t_op != Operation::Undefined ? t_op : r_op) { case Operation::MOVEfromSR: if constexpr (model == Model::M68000) { return false;