mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +00:00
43 lines
902 B
C++
43 lines
902 B
C++
//
|
|
// Perform.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 05/10/2023.
|
|
// Copyright © 2023 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef Perform_h
|
|
#define Perform_h
|
|
|
|
#include "Instruction.hpp"
|
|
#include "Model.hpp"
|
|
#include "Status.hpp"
|
|
|
|
namespace InstructionSet::x86 {
|
|
|
|
/// Performs @c instruction querying @c registers and/or @c memory as required, using @c io for port input/output,
|
|
/// and providing any flow control effects to @c flow_controller.
|
|
///
|
|
/// Any change in processor status will be applied to @c status.
|
|
template <
|
|
Model model,
|
|
typename InstructionT,
|
|
typename FlowControllerT,
|
|
typename RegistersT,
|
|
typename MemoryT,
|
|
typename IOT
|
|
> void perform(
|
|
const InstructionT &instruction,
|
|
Status &status,
|
|
FlowControllerT &flow_controller,
|
|
RegistersT ®isters,
|
|
MemoryT &memory,
|
|
IOT &io
|
|
);
|
|
|
|
}
|
|
|
|
#include "Implementation/PerformImplementation.hpp"
|
|
|
|
#endif /* Perform_h */
|