TorqueScript
0.2
|
Unconditionally jumps to the specified instruction offset. More...
#include <instructions.hpp>
Public Member Functions | |
JumpInstruction (const AddressType offset) | |
Constructs a new JumpInstruction instance. 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. | |
Additional Inherited Members | |
Public Attributes inherited from TorqueScript::Instructions::Instruction | |
std::string | mComment |
Compiler generated comment, used for generating easier to follow disassembly. | |
Unconditionally jumps to the specified instruction offset.
|
inline |
Constructs a new JumpInstruction instance.
offset | The instruction offset to unconditionally jump to. |
|
inlineoverridevirtual |
Main execution method of the instruction. This serves as our switching statement that determines how opcodes will behave.
state | The current execution state to act upon. |
Implements TorqueScript::Instructions::Instruction.