mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-23 05:23:59 +00:00
Implement ELF support
This commit is contained in:
@@ -22,11 +22,20 @@ struct DisassemblerEngine
|
||||
namespace ppc
|
||||
{
|
||||
extern DisassemblerEngine gPPCBigEndianDisassembler;
|
||||
|
||||
static size_t Disassemble(const uint8_t* code, size_t size, uint64_t base, size_t count, cs_insn** instructions)
|
||||
{
|
||||
return gPPCBigEndianDisassembler.Disassemble(code, size, base, count, instructions);
|
||||
}
|
||||
|
||||
static cs_insn* DisassembleSingle(const uint8_t* code, uint64_t base)
|
||||
{
|
||||
cs_insn* instruction{};
|
||||
gPPCBigEndianDisassembler.Disassemble(code, 4, base, 1, &instruction);
|
||||
|
||||
return instruction;
|
||||
}
|
||||
|
||||
static void SetDetail(bool value)
|
||||
{
|
||||
gPPCBigEndianDisassembler.SetDetail(value);
|
||||
|
Reference in New Issue
Block a user