![]() |
Phasor 3.3.0
Stack VM based Programming Language
|
Instruction with up to 5 operands Format: instruction operand1, operand2, operand3 Each instruction uses only the operands it needs. More...
#include <CodeGen.hpp>
Public Member Functions | |
| Instruction () | |
| Instruction (OpCode op, int32_t op1=0, int32_t op2=0, int32_t op3=0) | |
| Instruction () | |
| Instruction (OpCode op, int32_t op1=0, int32_t op2=0, int32_t op3=0) | |
Public Attributes | |
| OpCode | op |
| Operation code. | |
| int32_t | operand1 |
| First operand. | |
| int32_t | operand2 |
| Second operand. | |
| int32_t | operand3 |
| Third operand. | |
Instruction with up to 5 operands Format: instruction operand1, operand2, operand3 Each instruction uses only the operands it needs.
Single instruction in the Phasor VM.
Definition at line 20 of file CodeGen.hpp.
|
inline |
Definition at line 28 of file CodeGen.hpp.
|
inline |
Definition at line 33 of file CodeGen.hpp.
|
inline |
Definition at line 196 of file PhasorISA.hpp.
|
inline |
Definition at line 201 of file PhasorISA.hpp.
| OpCode Phasor::Instruction::op |
Operation code.
Definition at line 22 of file CodeGen.hpp.
| int32_t Phasor::Instruction::operand1 |
First operand.
Definition at line 23 of file CodeGen.hpp.
| int32_t Phasor::Instruction::operand2 |
Second operand.
Definition at line 24 of file CodeGen.hpp.
| int32_t Phasor::Instruction::operand3 |
Third operand.
Definition at line 25 of file CodeGen.hpp.