From 52e3dece813d8dda9de68e2be6a0f88e8cc8bfaf Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 29 Apr 2019 19:07:14 -0400 Subject: [PATCH] Improves exposition. --- Processors/68000/Implementation/68000Implementation.hpp | 3 +++ 1 file changed, 3 insertions(+) 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_;