jak-project/decompiler/VuDisasm/VuProgram.h
water111 a96710f0c5
VU micro mode disassembler (#517)
* wip

* more

* the rest of the disassembler
2021-05-23 16:59:09 -04:00

23 lines
519 B
C++

#pragma once
#include <vector>
#include "decompiler/VuDisasm/VuInstruction.h"
namespace decompiler {
class VuProgram {
public:
VuProgram() = default;
void add_instruction(const VuInstruction& upper, const VuInstruction& lower) {
VuInstructionPair p;
p.upper = upper;
p.lower = lower;
m_instructions.push_back(p);
}
const std::vector<VuInstructionPair>& instructions() const { return m_instructions; }
private:
std::vector<VuInstructionPair> m_instructions;
};
} // namespace decompiler