2021-01-17 01:51:02 +00:00
|
|
|
//
|
|
|
|
// Executor.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 16/1/21.
|
|
|
|
// Copyright © 2021 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "Executor.hpp"
|
|
|
|
|
|
|
|
using namespace InstructionSet::M50740;
|
|
|
|
|
|
|
|
template <Operation operation> void Executor::perform(uint8_t *operand [[maybe_unused]]) {
|
|
|
|
}
|
|
|
|
|
|
|
|
template <Operation operation, AddressingMode addressing_mode> void Executor::perform(Executor *) {
|
|
|
|
}
|
|
|
|
|
2021-01-17 02:45:44 +00:00
|
|
|
Executor::Action Executor::action_for(Instruction instruction) {
|
|
|
|
Action action {
|
|
|
|
.perform = performer_lookup_.performer(instruction.operation, instruction.addressing_mode)
|
|
|
|
};
|
2021-01-17 01:51:02 +00:00
|
|
|
return action;
|
|
|
|
}
|