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
asm A couple of audio-related improvements (#2359) 2026-09-26 15:54:22 -05:00
constants
data Merge pull request #2322 from mrgriffin/pret-applywaitmovement 2026-09-01 02:36:56 -04:00
docs
graphics
include Report SaveBlock1/SaveBlock2/PokemonStorage usage (#2364) 2026-10-01 20:02:13 +01:00
libagbsyscall
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
.gitignore A couple of audio-related improvements (#2359) 2026-09-26 15:54:22 -05:00
asmdiff.ps1
asmdiff.sh
audio_rules.mk
build_tools.sh
charmap.txt s/SKIP/SKIP_TO 2026-07-20 13:42:58 +01:00
graphics_file_rules.mk
INSTALL.md
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
Makefile Report SaveBlock1/SaveBlock2/PokemonStorage usage (#2364) 2026-10-01 20:02:13 +01:00
map_data_rules.mk
memory.txt Report SaveBlock1/SaveBlock2/PokemonStorage usage (#2364) 2026-10-01 20:02:13 +01:00
README.md
rom.sha1
sym_bss.txt
sym_common.txt
sym_ewram.txt

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.