mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-03 18:00:01 +01:00
Phlosioneer
0f6cc27e81
Fixed decomp issue around LoadPalette
In LoadLinkPartnerEventObjectSpritePalette, using paletteNum += 6 causes GCC to "mark" paletteNum's register as a possible overflow, even though it performs the overflow check. Then, when passing args to LoadPalette, GCC fails to recognize that 0x100 + ((any u8) << 4) can never overflow as a u16. It then does an overflow check before calling LoadPalette. Assigning to a temp variable seems to avoid this "marking" behavior.
Pokémon Emerald
This is a disassembly of Pokémon Emerald.
It builds the following rom:
- pokeemerald.gba
sha1: f3ae088181bf583e55daf962a92bb46f4f1d07b7
To set up the repository, see INSTALL.md.
See also
- Disassembly of Pokémon Red/Blue
- Disassembly of Pokémon Yellow
- Disassembly of Pokémon Gold
- Disassembly of Pokémon Crystal
- Disassembly of Pokémon Pinball
- Disassembly of Pokémon TCG
- Disassembly of Pokémon Ruby
- Disassembly of Pokémon Fire Red
- Discord: pret
- irc: irc.freenode.net #pret
Description
Languages
C
79.9%
Assembly
16.7%
C++
3.1%
Makefile
0.3%