mirror of
https://github.com/ran-j/PS2Recomp.git
synced 2026-10-01 10:26:07 -04:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user