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:
parent
84cfbaa0a4
commit
4d03c73222
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user