V-Gears 0
Free Final Fantasy VII engine.
FieldUncondJumpInstruction.h
Go to the documentation of this file.
1/*
2 * V-Gears
3 * Copyright (C) 2022 V-Gears Team
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
22
27
28 public:
29
34
40 virtual bool IsFuncCall() const;
41
48 virtual bool IsUncondJump() const;
49
56 virtual uint32 GetDestAddress() const;
57
66 virtual void ProcessInst(
67 Function& func, ValueStack& stack, Engine* engine, CodeGenerator* code_gen
68 ) override;
69
76 virtual std::ostream& Print(std::ostream &output) const override;
77
78 private:
79
84};
Base class for code generators.
Definition: CodeGenerator.h:58
Base class for engines.
Definition: Engine.h:34
An unconditional map jump instruction.
Definition: FieldUncondJumpInstruction.h:26
virtual uint32 GetDestAddress() const
Retrieves the destination address of the jump.
Definition: FieldUncondJumpInstruction.cpp:33
virtual void ProcessInst(Function &func, ValueStack &stack, Engine *engine, CodeGenerator *code_gen) override
Processes the instruction.
Definition: FieldUncondJumpInstruction.cpp:52
virtual bool IsUncondJump() const
Indicates if the instruction is an unconditional jump.
Definition: FieldUncondJumpInstruction.cpp:31
FieldUncondJumpInstruction()
Constructor.
Definition: FieldUncondJumpInstruction.cpp:27
bool is_func_call_
Whether or not this is really a call to a script function.
Definition: FieldUncondJumpInstruction.h:83
virtual std::ostream & Print(std::ostream &output) const override
Prints the instruction.
Definition: FieldUncondJumpInstruction.cpp:45
virtual bool IsFuncCall() const
Indicates if the instruction is a function call.
Definition: FieldUncondJumpInstruction.cpp:29
Instruction performing an unconditional jump.
Definition: UncondJumpInstruction.h:23
unsigned int uint32
Definition: scummsys.h:435
Structure representing a function.
Definition: Function.h:26