1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Ensure that the first instruction of privilege/line1010/etc exceptions isn't traced.

This commit is contained in:
Thomas Harte 2022-05-13 11:08:22 -04:00
parent 84cfbaa0a4
commit 4d03c73222

View File

@ -283,10 +283,6 @@ void Executor<model, BusHandler>::run(int &count) {
status_.interrupt_level = interrupt_input_;
}
// Capture the trace bit, indicating whether to trace
// after this instruction.
const auto should_trace = status_.trace_flag;
// Read the next instruction.
instruction_address_ = program_counter_.l;
instruction_opcode_ = read_pc<uint16_t>();
@ -310,6 +306,10 @@ void Executor<model, BusHandler>::run(int &count) {
}
}
// Capture the trace bit, indicating whether to trace
// after this instruction.
const auto should_trace = status_.trace_flag;
// Temporary storage.
CPU::SlicedInt32 operand_[2];
EffectiveAddress effective_address_[2];