These were found by correlating identical code between Sky and Heart
Gold.
This is the first of a series of results from this correlation work.
Some of the changes included in this commit:
- init code
- math utilities (FX_, VEC_, MTX_)
- graphics utilities (GX_ and friends)
None of the code here is decompiled, so this change only includes
renames and tweaks to the asm.
Note: GX_HBlankIntr is not the same between EoS and Heart Gold, but the
label was added anyway because it is between GX_Init and GX_VBlankIntr
in both games. The latter two functions DO match between games.
Compared/synced by hand from the pokeheartgold asm.
Some of the functions had labels corresponding to libgcc counterparts;
rename them all for consistency.
Note that some of the functions have multiple names in pokeheartgold
(of which at most one is actually used). Instead of polluting the xMAP
files with multiple symbols (some with zero length), which makes it
really hard for scripts to parse, just add these alternate names as
comments. This makes them searchable without having an effect on build
artifacts.