diff --git a/Processors/68000/Implementation/68000Implementation.hpp b/Processors/68000/Implementation/68000Implementation.hpp index 380e6a977..aee4c7de2 100644 --- a/Processors/68000/Implementation/68000Implementation.hpp +++ b/Processors/68000/Implementation/68000Implementation.hpp @@ -332,7 +332,7 @@ template void Proces // should_log = (fetched_pc >= 0x408D66) && (fetched_pc <= 0x408D84); #endif - if(instructions[decoded_instruction_.full].micro_operations != std::numeric_limits::max()) { + if(instructions[decoded_instruction_.full].micro_operations != Program::NoSuchProgram) { if((instructions[decoded_instruction_.full].requires_supervisor) && !is_supervisor_) { // A privilege violation has been detected. active_program_ = nullptr; diff --git a/Processors/68000/Implementation/68000Storage.hpp b/Processors/68000/Implementation/68000Storage.hpp index c87f40b55..6f5deeb50 100644 --- a/Processors/68000/Implementation/68000Storage.hpp +++ b/Processors/68000/Implementation/68000Storage.hpp @@ -368,9 +368,11 @@ class ProcessorStorage { source_offset = 0; } + static constexpr uint32_t NoSuchProgram = std::numeric_limits::max(); + /// The offset into the all_micro_ops_ at which micro-ops for this instruction begin, /// or std::numeric_limits::max() if this is an invalid Program. - uint32_t micro_operations = std::numeric_limits::max(); + uint32_t micro_operations = NoSuchProgram; /// The overarching operation applied by this program when the moment comes. Operation operation; /// The number of bytes after the beginning of an instance of ProcessorStorage that the RegisterPair32 containing