18 lines
381 B
C++
18 lines
381 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> interrupts;
|
|
std::vector<std::uint8_t> memory;
|
|
unsigned stackPointer;
|
|
bool terminated;
|
|
};
|
|
} |