1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-04-06 10:38:16 +00:00

Move set_pc into the operation-specific group.

This commit is contained in:
Thomas Harte 2022-05-09 16:20:15 -04:00
parent 0af8660181
commit 2ca1eb4cf8
3 changed files with 3 additions and 3 deletions

View File

@ -48,11 +48,11 @@ template <Model model, typename BusHandler> class Executor {
// Flow control.
void consume_cycles(int) {}
void set_pc(uint32_t);
void raise_exception(int, bool use_current_instruction_pc = true);
void did_update_status();
void jmp(uint32_t);
template <typename IntT> void complete_bcc(bool matched_condition, IntT offset);
void complete_dbcc(bool matched_condition, bool overflowed, int16_t offset);
void stop();

View File

@ -361,7 +361,7 @@ template <Model model, typename BusHandler>
void Executor<model, BusHandler>::stop() {}
template <Model model, typename BusHandler>
void Executor<model, BusHandler>::set_pc(uint32_t address) {
void Executor<model, BusHandler>::jmp(uint32_t address) {
program_counter_.l = address;
}

View File

@ -373,7 +373,7 @@ template <
// JMP: copies EA(0) to the program counter.
case Operation::JMP:
flow_controller.set_pc(src.l);
flow_controller.jmp(src.l);
break;
// JSR: jump to EA(0), pushing the current PC to the stack.