diff --git a/Processors/68000/Implementation/68000Implementation.hpp b/Processors/68000/Implementation/68000Implementation.hpp index a69941654..350cc3ea6 100644 --- a/Processors/68000/Implementation/68000Implementation.hpp +++ b/Processors/68000/Implementation/68000Implementation.hpp @@ -121,7 +121,9 @@ template void Proces // no instruction was ongoing. Either way, do a standard instruction operation. // TODO: is an interrupt pending? + if(trace_flag_) { + // The user has set the trace bit in the status register. active_program_ = nullptr; active_micro_op_ = exception_micro_ops_; populate_trap_steps(9, get_status()); @@ -163,6 +165,7 @@ template void Proces active_micro_op_ = active_program_->micro_operations; } } else { + // The opcode fetched isn't valid. active_program_ = nullptr; active_micro_op_ = exception_micro_ops_;