Compile to bytecode
This commit is contained in:
@@ -1,18 +1,17 @@
|
||||
#pragma once
|
||||
#include <execute/interrupts.hpp>
|
||||
#include <execute/registers.hpp>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
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;
|
||||
Registers registers;
|
||||
std::vector<std::uint8_t> memory;
|
||||
|
||||
void PushToStack(int const value);
|
||||
int PopFromStack();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user