An instruction to execute in the VM. More...
#include <RuleVM.h>
Public Member Functions | |
| Instruction (CMD cmd, MemoryCell payload=MemoryCell{0ul}) | |
| Constructs an Instruction. | |
Public Attributes | |
| CMD | cmd |
| The command to execute. | |
| MemoryCell | payload |
| The payload the instruction can have. | |
An instruction to execute in the VM.
Consists out of a command and an argument (payload), e.g. LOADC 1.
Not all commands use the payload.
|
inlineexplicit |
Constructs an Instruction.
| cmd | The command. |
| payload | The payload. |