mirror of
https://github.com/pret/pmd-sky.git
synced 2026-04-24 23:09:54 -05:00
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.
27 lines
683 B
Python
27 lines
683 B
Python
from dataclasses import dataclass
|
|
|
|
MIXED_CASE_SYMBOLS_ARM9 = {
|
|
'_secure': 'SECURE',
|
|
'_start_AutoloadDoneCallback': 'StartAutoloadDoneCallback',
|
|
'_start_ModuleParams': 'START_MODULE_PARAMS',
|
|
'MIi_UncompressBackward': 'MIiUncompressBackward',
|
|
'OSi_ReferSymbol': 'OSiReferSymbol',
|
|
'SVC_CpuSet': 'SvcCpuSet',
|
|
'SVC_SoftReset': 'SvcSoftReset',
|
|
'SVC_WaitByLoop': 'SvcWaitByLoop',
|
|
}
|
|
|
|
MIXED_CASE_SYMBOLS_ARM7 = {
|
|
'_start': '_start_arm7',
|
|
'_start_AutoloadDoneCallback': 'StartAutoloadDoneCallbackArm7',
|
|
'do_autoload': 'do_autoload_arm7',
|
|
}
|
|
|
|
WRAM_OFFSET = 0x1477E18
|
|
|
|
@dataclass
|
|
class SymbolDetails:
|
|
name: str
|
|
file_path: str
|
|
is_data: bool
|