mirror of
https://github.com/YohannDR/mzm.git
synced 2024-11-27 06:51:19 +00:00
1.3 KiB
1.3 KiB
Important
Anyone wanting to contribute MUST read the following and adhere to the steps outlined, in order to not violate any Copyright.
This decompile is a clean room design. It MUST not incorperate any code owned by Nintendo or other third parties.
In Order to achieve this all code has to be written completely fresh, without reference to any third party code, no matter if leaked or not.
Derived from this there is the following requirement for contributors:
- Contributors MUST NOT study or refer to any code owned by Nintendo or other third parties.
Decompiling
Before starting any decompilation, make sure the project builds correctly:
$ make check
Then these are the rough steps to decompile a function:
- pick a function to decompile (from
asm/disasm_*.s
) - create a new file in
src/
if necessary (also adjustlinker.ld
) - go through it, roughly line by line, and translate it into C (into the proper file in
src/
) - compile it, see what doesn't match, and change it
- repeat step 4. until everything matches (
make diff
can be helpful, as well as https://cexplore.karathan.at/ and https://decomp.me/) - make sure everything still works (
make check
should give you OK) - open a PR on github