Phasor 2.2.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
Phasor::Instruction Struct Reference

Instruction with up to 5 operands Format: instruction operand1, operand2, operand3, operand4, operand5 Each instruction uses only the operands it needs. More...

#include <CodeGen.hpp>

Collaboration diagram for Phasor::Instruction:
[legend]

Public Member Functions

 Instruction ()
 Instruction (OpCode op, int32_t op1=0, int32_t op2=0, int32_t op3=0, int32_t op4=0, int32_t op5=0)

Public Attributes

OpCode op
 Operation code.
int32_t operand1
 First operand.
int32_t operand2
 Second operand.
int32_t operand3
 Third operand.
int32_t operand4
 Fourth operand.
int32_t operand5
 Fifth operand.

Detailed Description

Instruction with up to 5 operands Format: instruction operand1, operand2, operand3, operand4, operand5 Each instruction uses only the operands it needs.

Definition at line 169 of file CodeGen.hpp.

Constructor & Destructor Documentation

◆ Instruction() [1/2]

Phasor::Instruction::Instruction ( )
inline

Definition at line 179 of file CodeGen.hpp.

◆ Instruction() [2/2]

Phasor::Instruction::Instruction ( OpCode op,
int32_t op1 = 0,
int32_t op2 = 0,
int32_t op3 = 0,
int32_t op4 = 0,
int32_t op5 = 0 )
inline

Definition at line 184 of file CodeGen.hpp.

Member Data Documentation

◆ op

OpCode Phasor::Instruction::op

Operation code.

Definition at line 171 of file CodeGen.hpp.

◆ operand1

int32_t Phasor::Instruction::operand1

First operand.

Definition at line 172 of file CodeGen.hpp.

◆ operand2

int32_t Phasor::Instruction::operand2

Second operand.

Definition at line 173 of file CodeGen.hpp.

◆ operand3

int32_t Phasor::Instruction::operand3

Third operand.

Definition at line 174 of file CodeGen.hpp.

◆ operand4

int32_t Phasor::Instruction::operand4

Fourth operand.

Definition at line 175 of file CodeGen.hpp.

◆ operand5

int32_t Phasor::Instruction::operand5

Fifth operand.

Definition at line 176 of file CodeGen.hpp.


The documentation for this struct was generated from the following file: