19 lines
477 B
C++
19 lines
477 B
C++
#pragma once
|
|
#include <execute/interrupts.hpp>
|
|
#include <string>
|
|
#include <unordered_map>
|
|
|
|
namespace Execute
|
|
{
|
|
struct State
|
|
{
|
|
unsigned currentStatement;
|
|
unsigned nextStatement;
|
|
std::unordered_map<std::string, unsigned> const & labelStatementIndice;
|
|
std::vector<InterruptFn> const interrupts;
|
|
std::vector<std::uint8_t> memory;
|
|
unsigned stackPointer;
|
|
|
|
State(std::unordered_map<std::string, unsigned> const & labelStatementIndice, unsigned const memorySize);
|
|
};
|
|
} |