1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-12-12 12:17:51 +00:00

Proceed to complete test running.

This commit is contained in:
Thomas Harte
2022-05-02 12:57:45 -04:00
parent fa49737538
commit 3827ecd6d3
6 changed files with 96 additions and 62 deletions

View File

@@ -46,6 +46,17 @@ template <Model model, typename BusHandler> class Executor {
void add_pc(uint32_t);
void decline_branch();
// TODO: ownership of this shouldn't be here.
struct Registers {
uint32_t data[8], address[7];
uint32_t user_stack_pointer;
uint32_t supervisor_stack_pointer;
uint16_t status;
uint32_t program_counter;
};
Registers get_state();
void set_state(const Registers &);
private:
BusHandler &bus_handler_;
Predecoder<model> decoder_;