feat: better decoder (#40)

* feat: use rabbitizer for decode MIPs instructions

* feat: cleanup code generator

* feat: fix test and add a sefe check for generate functions
This commit is contained in:
Ranieri
2026-02-02 13:29:12 -03:00
committed by GitHub
parent d7306d2095
commit 5e9139dd22
6 changed files with 161 additions and 215 deletions
@@ -124,7 +124,7 @@ namespace ps2recomp
const Symbol *findSymbolByAddress(uint32_t address) const;
std::string getFunctionName(uint32_t address) const;
std::string getGeneratedFunctionName(const Function &function);
std::string sanitizeFunctionName(const std::string& name) const;
};
}
+3 -3
View File
@@ -80,8 +80,8 @@ namespace ps2recomp
OPCODE_SDC2 = 0x3E, // PS2 specific Store Quadword from Coprocessor 2 (VU0) - Overrides standard MIPS SDC2
OPCODE_SD = 0x3F, // Store Doubleword
// OPCODE_LQC2 = 0x36,
// OPCODE_SQC2 = 0x3E
OPCODE_LQC2 = OPCODE_LDC2,
OPCODE_SQC2 = OPCODE_SDC2
};
// SPECIAL Function (bits 5-0) for OPCODE_SPECIAL
@@ -775,4 +775,4 @@ namespace ps2recomp
} // namespace ps2recomp
#endif // PS2RECOMP_INSTRUCTIONS_H
#endif // PS2RECOMP_INSTRUCTIONS_H