2010-06-28 19:20:45 +02:00
|
|
|
#ifndef INTERPRETER_OPCODES_H_INCLUDED
|
|
|
|
#define INTERPRETER_OPCODES_H_INCLUDED
|
|
|
|
|
|
|
|
namespace Interpreter
|
|
|
|
{
|
|
|
|
class Runtime;
|
|
|
|
|
|
|
|
/// opcode for 0 arguments
|
|
|
|
class Opcode0
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void execute(Runtime& runtime) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2010-06-28 19:20:45 +02:00
|
|
|
virtual ~Opcode0() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
/// opcode for 1 argument
|
|
|
|
class Opcode1
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void execute(Runtime& runtime, unsigned int arg0) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2010-06-28 20:46:15 +02:00
|
|
|
virtual ~Opcode1() {}
|
2010-06-28 19:20:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|