Add seti and int operators

This commit is contained in:
2019-11-23 12:21:14 +01:00
parent f0e00ff018
commit 99f616e1e4
16 changed files with 153 additions and 66 deletions

View File

@@ -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);

View File

@@ -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;
};
}