Used to keep track of loops in the virtual instructions. This instruction marks the start of a loop control construct.
More...
#include <instructions.hpp>
|
| PushLoopInstruction (const std::size_t loopSize) |
| Constructs a new instance of PushLoopInstruction. More...
|
|
virtual AddressOffsetType | execute (std::shared_ptr< ExecutionState > state) override |
| Main execution method of the instruction. This serves as our switching statement that determines how opcodes will behave. More...
|
|
virtual std::string | disassemble () override |
| Helper routine to produce a disassembly for this instruction.
|
|
|
std::string | mComment |
| Compiler generated comment, used for generating easier to follow disassembly.
|
|
Used to keep track of loops in the virtual instructions. This instruction marks the start of a loop control construct.
◆ PushLoopInstruction()
TorqueScript::Instructions::PushLoopInstruction::PushLoopInstruction |
( |
const std::size_t |
loopSize | ) |
|
|
inline |
Constructs a new instance of PushLoopInstruction.
- Parameters
-
loopSize | The number of instructions contained in this loop. |
◆ execute()
virtual AddressOffsetType TorqueScript::Instructions::PushLoopInstruction::execute |
( |
std::shared_ptr< ExecutionState > |
state | ) |
|
|
inlineoverridevirtual |
Main execution method of the instruction. This serves as our switching statement that determines how opcodes will behave.
- Parameters
-
state | The current execution state to act upon. |
Implements TorqueScript::Instructions::Instruction.
The documentation for this class was generated from the following file: