Editing Disassembly instructions
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | The following guide will teach you how to get a disassembler environment with | + | {{DISPLAYTITLE:''Pikmin 2'' disassembly instructions}} |
− | + | The following guide will teach you how to get a disassembler environment with ''Pikmin 2'''s code, complete with the function symbol map. Some things to keep in mind: | |
− | + | * The symbol map (i.e. the thing that gives functions a name) can only be found in a ''Pikmin 2'' demo inside of a multi-game demo disc. | |
− | * The symbol map (i.e. the thing that gives functions | + | * These instructions apply to that demo. For most purposes, it's good enough, since the code should be very similar to the final game. You can apply this guide to the final version of ''Pikmin 2'', but you won't be able to get the symbol map working without a lot of effort. |
+ | * The disassembly is still written in PowerPC assembly language, and we only have access to the function name symbols; even then, some of them might be missing. | ||
== Getting the necessary files == | == Getting the necessary files == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
# Obtain the Multi Game Demo Disc Version 17 (US). | # Obtain the Multi Game Demo Disc Version 17 (US). | ||
# Add it to Dolphin's game list. | # Add it to Dolphin's game list. | ||
Line 20: | Line 13: | ||
# Right-click the ''Pikmin 2'' demo in Dolphin's game list, Properties, Filesystem: | # Right-click the ''Pikmin 2'' demo in Dolphin's game list, Properties, Filesystem: | ||
## Right-click Disc at the top of the tree, Extract DOL..., and extract it somewhere. | ## Right-click Disc at the top of the tree, Extract DOL..., and extract it somewhere. | ||
− | ## | + | ## Find <code>pikmin2UP.MAP</code>, right-click it, Extract File..., and extract it somewhere. |
== Setting up a disassembly environment == | == Setting up a disassembly environment == | ||
− | |||
# Install [https://ghidra-sre.org Ghidra] (and maybe familiarize yourself with how it works). | # Install [https://ghidra-sre.org Ghidra] (and maybe familiarize yourself with how it works). | ||
# Go to the [https://github.com/aldelaro5/ghidra-gekko-broadway-lang Ghidra Gekko/Brodway language project], and follow the instructions to install it on Ghidra. | # Go to the [https://github.com/aldelaro5/ghidra-gekko-broadway-lang Ghidra Gekko/Brodway language project], and follow the instructions to install it on Ghidra. | ||
# Go to the [https://github.com/Cuyler36/Ghidra-GameCube-Loader Ghidra GameCube loader project], and follow the instructions to install it on Ghidra. | # Go to the [https://github.com/Cuyler36/Ghidra-GameCube-Loader Ghidra GameCube loader project], and follow the instructions to install it on Ghidra. | ||
− | # In Ghidra, create a project for | + | # In Ghidra, create a project for ''Pikmin 2'', and add the .dol file you extracted to the project. The type should be detected automatically, but you should select GameCube game. |
− | # When asked if you want to include a symbol map, choose yes, and pick the | + | # When asked if you want to include a symbol map, choose yes, and pick the .MAP file you extracted. |
− | # Drag the | + | # Drag the .dol file to the CodeBrowser tool. When prompted to analyze the project, press Yes, and go with the defaults. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{credits|[[User:Espyo|Espyo]], [[User:Yoshi2|Yoshi2]]}} | {{credits|[[User:Espyo|Espyo]], [[User:Yoshi2|Yoshi2]]}} | ||
− | |||
[[Category:Pikmin 2]] | [[Category:Pikmin 2]] | ||
[[Category:Notes]] | [[Category:Notes]] |