NaInstTable

Stores an instruction table

Constructors

this
this()

constructor

Destructor

~this
~this()

destructor

Members

Functions

addInstruction
integer addInstruction(NaInst inst, void delegate() ptr)

Adds a new instruction. If inst.code == 0, Finds an available code, assigns inst.code that code. Otherwise inst.code is used, if available, or -1 returned.

getInstruction
NaInst getInstruction(ushort code)

Finds the instruction with matching code

getInstruction
integer getInstruction(string name, NaInstArgType[] arguments)

Finds an instruction that can be called with arguments with a matching name

getInstructionPtr
void delegate() getInstructionPtr(ushort code)

gets pointer for an instruction. **This can be null**

instructionExists
bool instructionExists(ushort code)
bool instructionExists(string name)

whether an instruction exists

Meta