Add seti and int operators
This commit is contained in:
10
include/execute/interrupts.hpp
Normal file
10
include/execute/interrupts.hpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
#include <execute/registers.hpp>
|
||||
#include <vector>
|
||||
|
||||
using InterruptFn = void (*)(Execute::Registers & registers);
|
||||
|
||||
namespace Execute
|
||||
{
|
||||
std::vector<InterruptFn> GetInterrupts();
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include <execute/interrupts.hpp>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
@@ -9,7 +10,7 @@ namespace Execute
|
||||
unsigned currentStatement;
|
||||
unsigned nextStatement;
|
||||
std::unordered_map<std::string, unsigned> const & labelStatementIndice;
|
||||
|
||||
std::vector<InterruptFn> const interrupts;
|
||||
|
||||
State(std::unordered_map<std::string, unsigned> const & labelStatementIndice);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user