Skip to main content

ppcdis

GC/Wii PowerPC disassembly & decompilation tools.

These tools are focused on automatically generating as much as possible, and doing it in a way that can be regenerated at any time. This makes things more future-proof (for example, projects have often had to go back and do a lot of manual labelling when adding new binaries like rels, whereas that's handled automatically here), reduces bloat in the github repo, and reduces manual editing (which, in the case of undecompiled assembly, can be a big time saver - renaming symbols, splitting files, and correcting pointers for shiftability can be very tedious in most existing setups, whereas they're just quick yml edits here). The pointer tracking in disassembly is also more in-depth than that of doldisasm.py, so more of the work towards shiftability should be done already.

These tools in an early state and therefore large changes may still happen. No backwards compatibility will be guaranteed.

See TOOLS.md for information on each tool. (Documentation is currently pretty lacking, so feel free to reach out to me for help)

See the Super Paper Mario Decompilation for an example of a project using these tools.

Building locally

Building this repository requires the existence of a protoc executable (protobuf compiler). To create wheel and source distributions:

pip install build
python -m build -s -w

To create editable installs, you currently have to manually invoke proto first (idk enough python to make stetuptools automatically do this).

protoc -Iproto --python_out=ppcdis proto/labelinfo.proto
protoc -Iproto --python_out=ppcdis proto/relocinfo.proto

APIs

  • The main API for these tools is the command line API
  • A python API is exposed in the ppcdis folder for pure python build systems to make use of too
    • Generally, any new features for the python API should also be exposed by the command line API too
    • Importing anything that isn't included in __init__.py isn't officially supported
    • Like the rest of the project, the API won't be guaranteed any backwards compatibility (and is likely to change more than the command line API will). This means users should not be required to install this globally (use something like venv instead), and that installs should be tied to a specific working version for the project
  • Installing the folder with pip can be used for the python API, but the command line API does not require this

Credits

  • camthesaxman for writing the original doldisasm.py
  • riidefi, terorie and stebler for the Mario Kart Wii Decompilation's tools, which heavily inspired this
  • All contributors to Tockdom's DOL and REL file format documentation

Metadata

Release files for ppcdis-protobuf 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ppcdis-protobuf 0.0.2
File Size Uploaded
ppcdis-protobuf-0.0.2.tar.gz 54.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ppcdis-protobuf 0.0.2
File Interpreter ABI Platform
ppcdis_protobuf-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 116.7 kB

Release files / ppcdis-protobuf-0.0.2.tar.gz

Download URL ppcdis-protobuf-0.0.2.tar.gz
Size 54.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1cba7d405763589761a4e2524982be6f79ef3869637cc7565d8a71a809861e13
BLAKE2b-256 checksum
How to use checksums
54698f429ea5e794af2fa3604a98cc12e842a1cced57367d0af49bb17b6f7c9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / ppcdis_protobuf-0.0.2-py3-none-any.whl

Download URL ppcdis_protobuf-0.0.2-py3-none-any.whl
Size 62.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1562e3daa7c107e88f2e6d39ca9d7e17ded7cda24d2b574650cc27bce2937a20
BLAKE2b-256 checksum
How to use checksums
e2b95007565887fc964fefa14897f54a280743f18bddf826667e0dfa6662de0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page