Add seti and int operators
This commit is contained in:
@@ -22,6 +22,11 @@ namespace Interpret
|
||||
ExpectedLabel(Token::Token const & token);
|
||||
};
|
||||
|
||||
struct ExpectedValue : public TokenError
|
||||
{
|
||||
ExpectedValue(Token::Token const & token);
|
||||
};
|
||||
|
||||
struct ExpectedImmediate : public TokenError
|
||||
{
|
||||
ExpectedImmediate(Token::Token const & token);
|
||||
|
||||
@@ -54,4 +54,19 @@ namespace Interpret
|
||||
|
||||
JumpStatement(std::string const & label);
|
||||
};
|
||||
|
||||
struct SetStatement : Statement
|
||||
{
|
||||
Value firstArgument;
|
||||
Value secondArgument;
|
||||
|
||||
void Execute(Execute::Flags & flags, Execute::State & state, Execute::Registers & registers) override;
|
||||
};
|
||||
|
||||
struct InterruptStatement : Statement
|
||||
{
|
||||
Value firstArgument;
|
||||
|
||||
void Execute(Execute::Flags & flags, Execute::State & state, Execute::Registers & registers) override;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user