V-Gears 0
Free Final Fantasy VII engine.
FieldCondJumpInstruction.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
42 virtual void ProcessInst(
43 Function& function, ValueStack &stack, Engine* engine, CodeGenerator* code_gen
44 ) override;
45
52 virtual uint32 GetDestAddress() const override;
53
59 virtual std::ostream& Print(std::ostream &output) const override;
60};
Base class for code generators.
Definition: CodeGenerator.h:58
Instruction performing a conditional jump.
Definition: CondJumpInstruction.h:23
Base class for engines.
Definition: Engine.h:34
A conditional map jump instruction.
Definition: FieldCondJumpInstruction.h:26
virtual std::ostream & Print(std::ostream &output) const override
Prints the instruction.
Definition: FieldCondJumpInstruction.cpp:124
virtual uint32 GetDestAddress() const override
Retrieves the destination address of the jump.
Definition: FieldCondJumpInstruction.cpp:98
virtual void ProcessInst(Function &function, ValueStack &stack, Engine *engine, CodeGenerator *code_gen) override
Processes a conditional jump instruction.
Definition: FieldCondJumpInstruction.cpp:27
unsigned int uint32
Definition: scummsys.h:435
Structure representing a function.
Definition: Function.h:26