From 278536f8232896dc05ceaae0edfdfd8aac6d8dbb Mon Sep 17 00:00:00 2001 From: AnonymousRandomPerson Date: Thu, 21 Sep 2023 22:28:10 -0400 Subject: [PATCH] Updated Decompiling a function (markdown) --- Decompiling-a-function.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Decompiling-a-function.md b/Decompiling-a-function.md index 3e5f834..0e86d32 100644 --- a/Decompiling-a-function.md +++ b/Decompiling-a-function.md @@ -14,7 +14,7 @@ Once you pick a function, you'll need a workflow where you can write some C code Click "Start decomping" to begin setting up a function decomp environment ("scratch"). You can optionally sign into your GitHub account in decomp.me to keep track of all scratches you've created. You'll be prompted to create a new scratch by filling in a couple of fields. -* Choose the DS (ARMv5TE) platform and the _Pokémon HeartGold/SoulSilver_ preset (which EoS also uses currently). This will set up the compiler and flags to match the compiler used by the EoS decomp. +* Choose the DS (ARMv5TE) platform and the _Pokémon Mystery Dungeon: Explorers of Sky_ preset. This will set up the compiler and flags to match the compiler used by the EoS decomp. * In "Diff label", enter the name of the function you plan to decompile. * In "Target assembly", place the entire function from the `.s` file, including the `arm_func_start` and `arm_func_end`. * "Context" can contain definitions such as typedefs, structs, enums, and `extern` functions. It is technically not required, but using it will keep function source code clean when working on the scratch. You can grab a default context from [nitro/types.h](https://github.com/pret/pmd-sky/blob/main/lib/include/nitro/types.h); exclude all the `#ifdef`s and take the typedefs along with these three `#define`s: @@ -23,8 +23,7 @@ You'll be prompted to create a new scratch by filling in a couple of fields. #define FALSE 0 #define NULL ((void *)0) ``` - -![Screenshot 2023-08-23 at 10 35 06 PM](https://github.com/pret/pmd-sky/assets/6516839/c3cee573-0e94-4103-815f-559a37e14d66) +![Screenshot 2023-09-21 at 10 27 07 PM](https://github.com/pret/pmd-sky/assets/6516839/72e4afd3-93c7-4de8-9fa8-a3dfd375cbe2) If you filled in all fields correctly, "Create scratch" will create the scratch. The creation may fail if there are errors parsing the target assembly code, in which case you should review the parsing errors and the above instructions to see what went wrong. When the scratch is created, you'll be taken to the screen below.