summaryrefslogtreecommitdiff
path: root/shim.sym
blob: f62e47fb4b6bc6fdeb0afe84455790fcc48461cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
; ROM0
00:0317 DelayFrame
00:0324 DelayFrames
00:0401 DisableLCD
00:0410 DisableLCD.wait
00:0423 EnableLCD
00:05E6 ClearVRAM
00:05F1 BlankBGMap
00:05F1 FillBGMap
00:05F6 _FillBGMap
00:05FA _FillBGMap.loop
00:0884 UpdateJoypad
00:0d1a LoadFontExtra
00:0d0a LoadFont
00:0d68 CopyGfx
00:0E2A ClearTileMap
00:0e3d DrawTextBox
00:0E93 PlaceString
00:0E94 PlaceNextChar
00:0E9D CheckDict
00:10A6 PlaceHLTextAtBC
00:10B7 DoTextUntilTerminator
00:10C1 DoTextUntilTerminator.continue
00:10E2 Text_TX
00:120C TextCommands
00:1d49 LoadMenuHeader
00:1e58 OpenMenu
00:1F9E ClearWindowData
00:1FCC ClearWindowData.bytefill
00:2007 Unk_2007

00:20ff RunMapScript
00:232c LoadMapWarp
00:23e5 OverworldFadeIn

00:2FA8 FarCall_hl
00:2FC8 FarCall_hl.return
00:2FDE Predef
00:2FF6 Predef.return
00:300C Predef.saveregs
00:3270 Random
00:32A7 OpenSRAM
00:32B7 CloseSRAM
00:32C2 Bankswitch
00:32DC ClearSprites
00:32E2 ClearSprites.loop
00:32F7 FarCopyBytes
00:330A CopyBytes
00:3313 CopyBytes.next
00:331A CopyBytesSmall
00:3321 GetFarByte
00:3339 ByteFill
00:3342 ByteFill.smallfill
00:3343 ByteFill.startfilling
00:3344 ByteFill.loop
00:3429 AddAMulBC
00:3621 WaitBGMap
00:362B SetPalettes
00:3634 ClearPalettes
00:363C GetMemSGBLayout
00:363E GetSGBLayout
00:3648 SetHPPal
00:3655 SetHPPal.done
00:36C8 NamesPointers
00:36E0 GetName
00:3CBF DisableAudio
00:3CDB UpdateSound
00:3CF7 LoadMusicByte_
00:3D07 PlayMusic
00:3D23 PlayCryHeader
00:3D63 PlaySFX
00:3D7F WaitPlaySFX
00:3D86 WaitSFX
00:3D87 WaitSFX.wait
00:3DA5 MaxVolume
00:3DAB LowVolume
00:3DB1 VolumeOff
00:3DB6 UpdateSoundNTimes
00:3DBE FadeToMapMusic
00:3DDC FadeToMapMusic.dontfade
00:3DE1 PlayMapMusic
00:3E00 PlayMapMusic.dontplay
00:3E05 SpecialMapMusic
00:3E14 SpecialMapMusic.state2 ; ?
00:3E19 SpecialMapMusic.normal
00:3E1B GetMapMusic
00:3E2E GetMapMusic.unk_3E2E
00:3E32 Unk_3E32 ; What the f*** is this???
; (edited)
01:4153 LoadPushOAM
01:415A LoadPushOAM.loop
01:4161 PushOAM
01:4167 PushOAM.wait
01:416B PushOAMEnd
01:53cc MainMenu
01:5D8C IntroSequence
01:5eb8 TitleFlameGfx
01:5f38 TitleNoteGfx
01:62B0 GetPredefPointer
01:62D3 PredefPointers
01:62A5 GameInit
01:6FEC ItemNames

02:4856 DecompTownMapTilemap
02:48da DecompTownMapTilemap.tilemap ; compressed
02:4f32 PokegearRadioGfx
02:4c7c DrawMap
02:4dc2 TownMapGfx
02:5695 CheckSGB ; ?

03:4791 DebugWarp
03:479f DebugWarp.Destinations

04:47cf CopyrightGfx
04:495f VersionGfx
04:49ef PocketMonstersGfx
04:4adf TitleHoOhGfx
04:4def LogoGfx
04:5677 DoPlayerMovement
04:5bb1 MailIconGfx
04:7171 ProfileGfx
04:73b1 ProfileBadgeGfx

0e:4b78 LoadTrainerClassName
0e:4ba0 LoadTrainerClassName.got_name
0e:4ba9 LoadTrainerClass
0E:4D90 TrainerClassNames

10:52A1 MoveNames

11:40d5 DexGfx
11:46d5 DexSearchGfx

14:6D75 PokemonNames

1F:4D6A UnownPicPtrs ; [front ptr (2b)][back ptr (2b)]

21:4000 MoveEffectGfx

23:4349 OverworldFadeOut
23:60cc MenuMonIconGfx

30:4000 OverworldSpriteGfx

3A:4000 DisableAudio_
3A:4012 DisableAudio_.initchannel
3A:4026 DisableAudio_.clearmusicmem
3A:4037 UpdateSound_
3A:4D66 PlayMusic_
3A:4D9D PlayCryHeader_
3A:4E22 PlaySFX_

3e:4162 FontExtraGfx
3e:4762 FontBattleExtraGfx
3e:4962 BorderGfx
3e:5052 BoldFontGfx
3e:533a PackIconGfx

3f:64ce MonsterTest
3f:654e PicTest
3f:6750 PicTestMenu
3f:6755 PicTestMenu.loop

3C:51CB CryHeaders

;00:BFFF sWindowStackTop

00:C000 Music
00:C0CB wChannel5Flags
00:C0FD wChannel6Flags
00:C12F wChannel7Flags
00:C161 wChannel8Flags
00:C199 wVolume
00:C1AD wMapMusic
00:C1AE wCryPitch
00:C1B0 wCryLength
00:C1BC wMusicEnd ; ? ; either wChannelsEnd or wMusicEnd, unsure
00:C200 wOAMBuffer
00:C2A0 wTileMap
00:c40b wWhichPicTest ; Monster or Trainer test?
00:c5e8 wMapScriptNumber
00:ca22 wTrainerClass
00:cb5b wName
00:cb5c wNameCategory
00:CBF2 wWindowData
00:CBF2 wWindowStackPointer
00:CC02 wMenuDataHeader
00:CC12 wMenuData2
00:CC22 wMenuData3
00:CC38 wUnk_CC38 ; wceeb in pokegold
00:cc39 wDebugWarpSelection
00:CCCF wSGB    
00:CD4F wPredefID
00:CD50 wPredefRegs
00:CD54 wFarCallBCBuffer
00:cdbe wTargetMapUnk
00:cdbf wTargetMapGroup
00:cdc0 wTargetMapId
00:CE3C wBuffer
00:CE5F wUnk_CE5F
00:CE62 wTextBoxFlags
00:ce67 wPlayerName

01:d165 wTMCounts
01:d19e wItems
01:d258 wRivalName
01:D264 wPlayerBikeSurfState
01:d656 wMapGroup
01:d657 wMapId
01:d66a wMapScriptPtr
01:D7D2 wPartyMonOT
01:DA3B wUnk_DA3B ; In final, $DE7D in NamesPointers (6th entry)