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

Add faulty restart_operation_fetch.

This commit is contained in:
Thomas Harte 2023-08-17 15:38:28 -04:00
parent 26343148ae
commit d9df568dab
2 changed files with 10 additions and 0 deletions

View File

@ -124,6 +124,12 @@ class ProcessorBase: public ProcessorStorage {
@returns @c true if the 6502 is jammed; @c false otherwise.
*/
inline bool is_jammed() const;
/*!
FOR TESTING PURPOSES ONLY: forces the processor into a state where
the next thing it intends to do is fetch a new opcode.
*/
inline void restart_operation_fetch();
};
/*!

View File

@ -728,3 +728,7 @@ void ProcessorBase::set_value_of(Register r, uint16_t value) {
default: break;
}
}
void ProcessorBase::restart_operation_fetch() {
scheduled_program_counter_ = nullptr;
}