Decompilation of Pokémon Emerald
  • C 75.6%
  • Assembly 20.1%
  • C++ 3.9%
  • Linker Script 0.2%
  • Makefile 0.2%
Find a file
Martin Griffin 731ad5bfd6
Report SaveBlock1/SaveBlock2/PokemonStorage usage (#2364)
Memory region         Used Size  Region Size  %age Used
           EWRAM:      249700 B       256 KB     95.25%
           IWRAM:       30892 B        32 KB     94.27%
             ROM:    14929764 B        32 MB     44.49%
      SaveBlock1:       15752 B      15872 B     99.24%
      SaveBlock2:        3884 B       3968 B     97.88%
  PokemonStorage:       33744 B      35712 B     94.49%

If the 'struct' doesn't fit the space allocated for it you'll get an
error, e.g. increasing 'TOTAL_BOXES' to 15 causes:
  arm-none-eabi-ld: region `PokemonStorage' overflowed by 444 bytes

The Hall of Fame, Recorded Battle, and Trainer Hill regions are not
included in the memory region output.

'memory.txt' may contain 'cpp' directives. Any output from '#include'd
files is discarded.
2026-10-01 20:02:13 +01:00
.github Use apt update before installing bin utils 2026-01-18 20:14:16 +01:00
asm A couple of audio-related improvements (#2359) 2026-09-26 15:54:22 -05:00
constants Document m4a xcmd_0C 2025-12-27 01:11:40 +00:00
data Merge pull request #2322 from mrgriffin/pret-applywaitmovement 2026-09-01 02:36:56 -04:00
docs Cleaned trailing whitespace 2022-09-11 14:14:49 -04:00
graphics Rearrange press_start.png 2026-06-17 14:14:19 +01:00
include Report SaveBlock1/SaveBlock2/PokemonStorage usage (#2364) 2026-10-01 20:02:13 +01:00
libagbsyscall Fix $(AR) define, remove \u warns on macOS. 2021-01-04 11:35:59 -05:00
sound A couple of audio-related improvements (#2359) 2026-09-26 15:54:22 -05:00
src Report SaveBlock1/SaveBlock2/PokemonStorage usage (#2364) 2026-10-01 20:02:13 +01:00
tools Report SaveBlock1/SaveBlock2/PokemonStorage usage (#2364) 2026-10-01 20:02:13 +01:00
.gitattributes Add missing files to .gitattributes. 2020-11-08 20:13:21 -05:00
.gitignore A couple of audio-related improvements (#2359) 2026-09-26 15:54:22 -05:00
asmdiff.ps1 Remove debug printing 2019-04-07 19:18:42 -05:00
asmdiff.sh Don't assume bash is at /bin/bash 2024-05-29 19:32:17 -04:00
audio_rules.mk Convert .aif files to .wav (#2213) 2025-12-01 09:01:26 -06:00
build_tools.sh Update deprecated build_tools script 2019-08-27 09:15:44 -04:00
charmap.txt s/SKIP/SKIP_TO 2026-07-20 13:42:58 +01:00
graphics_file_rules.mk Migrate INCBINs to INCGFX via migrate_incgfx.py 2026-04-19 07:06:18 +01:00
INSTALL.md add arm-none-eabi-newlib to required arch linux packages 2025-11-20 09:46:02 +01:00
json_data_rules.mk Generate ENCOUNTER_CHANCE constants separately from encounter data 2026-06-23 23:27:02 -04:00
ld_script.ld Report SaveBlock1/SaveBlock2/PokemonStorage usage (#2364) 2026-10-01 20:02:13 +01:00
ld_script_modern.ld Report SaveBlock1/SaveBlock2/PokemonStorage usage (#2364) 2026-10-01 20:02:13 +01:00
make_tools.mk Convert .aif files to .wav (#2213) 2025-12-01 09:01:26 -06:00
Makefile Report SaveBlock1/SaveBlock2/PokemonStorage usage (#2364) 2026-10-01 20:02:13 +01:00
map_data_rules.mk Generate heal location constants automatically, move data back to a single file. 2025-02-03 20:25:11 -05:00
memory.txt Report SaveBlock1/SaveBlock2/PokemonStorage usage (#2364) 2026-10-01 20:02:13 +01:00
README.md Replaced decomp list with pret.github.io link 2023-08-30 00:08:19 -04:00
rom.sha1 Make rom.sha1 lowercase to fix erroneous comparison results on *nix 2017-09-06 09:20:49 -04:00
sym_bss.txt remove gflib 2024-09-18 10:37:34 -04:00
sym_common.txt Remove explicit symbol sizes in sym_common.txt 2024-09-25 16:14:10 -04:00
sym_ewram.txt remove gflib 2024-09-18 10:37:34 -04:00

Pokémon Emerald

This is a decompilation of Pokémon Emerald.

It builds the following ROM:

To set up the repository, see INSTALL.md.

For contacts and other pret projects, see pret.github.io.