| Crates.io | portal-solutions-ppcd-sys |
| lib.rs | portal-solutions-ppcd-sys |
| version | 0.1.0 |
| created_at | 2025-05-26 16:34:12.22439+00 |
| updated_at | 2025-05-26 16:34:12.22439+00 |
| description | C interface to a PowerPC decoder |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1690026 |
| size | 156,802 |
PPCD is very accurate disassembler of PowerPC-based processors ISA. Current supported models are:
For each model standalone compiled executable is provided. To disassemble binary file, use:
ppcd-model binary
Output will go to stdout.
Credits: This program has written by org between 2006-2007 for Gekko debugger. PPCD is free opensource. You can use it in your applications without mention.
Let me know, if you made support for more processors.
How to use sourcecode:
You need to add ppcd.cpp/ppcd.h and Commondefs (data types) to your project. Call PPCDisasm and pass it PPCD_CB structure with filled "pc" and "instr" parameters. At minimum you can use "mnemonic" and "operands" as output parameters, but if you need more detailed information about disassembled instruction, use "icalss", "immed", "target" and "r":
As option there is PPCDisasmSimple call for quick use. Just call PPCDisasmSimple(pc, instr) and it will return formatted string.
ppcd.cpp compilation tips:
CHANGELOG:
This project is completed.
If you're experience weird .cpp errors, use static type casting in problem places. Things may change in time in CPP world.