-
Notifications
You must be signed in to change notification settings - Fork 1
/
shim.sym
247 lines (200 loc) · 4.24 KB
/
shim.sym
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
00:0000 JumpTable
00:098c JumpTable_
00:0038 AddHL_A
00:0040 VBlankInt
00:0048 LCDInt
00:0058 SerialInt
00:081e CopyShadowRegisters
00:0100 Start
00:0150 Start_
00:0ab4 ClearMemory
00:0abc Copy
00:0ac3 CopyLong
00:0979 ReadBCFar
00:09a5 FarCall
00:09c0 JpHL
00:06f8 FormatNumber
00:19fa ClearTile
00:1a11 CopyTileFar
00:1a29 CopyTile
00:1a64 WaitVBlank
;00:243b DoDialogue
;00:2464
;00:2489 PrepareDialogueBox
;00:2a25 ArrowTilemapPointers
2f:4496 OpenMapDialogue
4a:4089 NameTable
;17:4008 PrintLocation
;17:400f LocationTable
17:4c4d PrintSelectedLocation
79:4023 VCopy79
;79:41ba PrintStringID
;79:43b5 PrintString
;79:43c1 PrintString.next
;79:4477 StringIDToPointer
;79:44a0 StringPointerTable
79:404a GetPointer
; hl: pointer to string
; c: tile id
79:40a4 TileNumToPointer
00:c0aa wSelectedLocation
00:c0ad wFrameCounter
00:c526 wStringID ; wrong?
00:c527 wStringID2
00:c528 wDialogueBank
00:c529 wDialogueTilesPtr
00:c52a wDialogueTilesPtrHi
00:c53e wDialogueTextByte
00:c52b wDialogueBoxWidth
00:c52c wDialogueBoxHeight
; how did I dupe this
00:c52d wDialogueOffset
00:c52d wDialogueOffset2
00:c52f wDialogueTileDestination
00:c530 wDialogueTileDestinationHi
00:c531 wRemainingCharacters
00:c532 wRemainingLines
00:c537 wDialogueState
00:c53c wDialogueDelay
00:c53d wDialogueDelayEnabled ; bit 7
00:c53f wControlCodeName
00:c53f wControlCodeNumAnswers
00:c53f wControlCodeParams
00:c541 wControlCodeAnswer1Tile
00:c542 wControlCodeAnswer2Tile
00:c543 wControlCodeAnswer3Tile
00:c544 wControlCodeAnswer4Tile
00:c545 wControlCodeAnswerAxis ; l/r or up/down?
00:c547 wVarString
00:c703 wMainMenuOption
00:c7b4 wNamingScreenCursor
00:c7b5 wKeyboard
00:c706 wNamingScreenX
00:c707 wNamingScreenY
00:c707 wFileScreenY
00:c7b2 wNamingScreenDestination
00:c7b3 wNamingScreenDestinationHi
00:06bb GetTilePtr
00:2e3b Decompress
; at a:hl to de
02:4001 DoOverworld
02:42db OverworldHandleSelect
02:42b3 OverworldHandleStart
78:78fe MainMenuPalettes
78:7575 MainMenuGfxComp
79:4311 PrintMoney
7b:4187 LoadToolGfx
7b:4199 LoadToolPal ; unsure
7a:4017 WriteTilemapByte7A
7a:40f0 CopyTilemap7A
;7a:6f84 EnterNameTilemap
;7a:6fe8 EnterNameAttributemap
7b:4054 TilemapGetPointer
7b:40f0 CopyTilemap
7b:40f2 CopyTilemap.loop
7b:4017 WriteTilemapByte
7b:43b2 CopyWholeScreenTilemap
7b:4395 LoadTilemapNum
; in B
7b:43c6 LoadTilemapNumToRAM ; in b
7b:423c LoadDialogueBoxTilemap
7d:4187 DrawPlayerSpriteInCorner
78:40f0 CopyTilemap78
78:4473 IncStatusScreenState
78:40D8 JumptableOnJoypad
78:41c7 StartMenuA
78:41d7 StartMenuExit
78:4209 StartMenuNop
78:41e0 StartMenuUp
78:41eb StartMenuDown
00:0f80 DoSound
00:2415 PlaySFX
3b:4816 DropPet
3b:484f DropPet.SFXTable
00:c702 wStatusScreenState
69:4462 StatusScreenGfxCompr
;7f:445a LoadCompressedGfxAtDE
7f:4681 LdBCAtDE
7f:4674 LoadHLAAtDE
7f:467a LoadHLAtDE
01:d400 wPlayerDataStart
01:d400 wPlayerName
01:d408 wPlayerGender
01:d409 wPlayerBloodType
01:d40a wPlayerBirthdaySeason
01:d40b wPlayerBirthdayDay
01:d410 wPartnerName
01:d417 wPetName
01:db95 wMarriageSeason
01:db96 wMarriageDay
01:d471 wYear
01:d472 wSeason
01:d473 wDay
01:d474 wWeekday
01:d475 wHour
01:d559 wTool
01:d623 wTimesPetDropped
01:d416 wPetSpecies
01:d4b3 wOverworldAction
01:dbc6 wPlayerDataEnd
01:dd54 wWhichSave
01:d7d2 wTmpBank
01:d7d6 wDialogueSectionX
01:d965 wPalettes
01:dcf0 wCGB
03:a000 sSave1
03:b000 sSave2
6d:42d6 Tilemap0
6d:46f0 Tilemap1
6d:4759 Tilemap2
6d:4812 Tilemap3
6d:5628 Tilemap4
6d:5c33 Tilemap5
6d:6285 Tilemap6
6d:4bcb Tilemap7
6d:4fe2 Tilemap8
6d:6bec Tilemap9
6d:6d3f Tilemapa
6d:6e14 Tilemapb
6d:6f46 Tilemapc
6d:7094 Tilemapd
6d:7094 Tilemape
6d:71b7 Tilemapf
6c:4feb Tilemap10
6c:4feb Tilemap11
6c:5622 Tilemap12
6c:5bd4 Tilemap13
6c:5fe8 Tilemap14
6c:64e3 Tilemap15
6c:6894 Tilemap16
6c:6c7c Tilemap17
6c:6fc6 Tilemap18
6c:7411 Tilemap19
6c:7914 Tilemap1a
6b:5080 Tilemap1b
6b:5133 Tilemap1c
6b:5268 Tilemap1d
6b:52d9 Tilemap1e
6b:6097 Tilemap1f
6b:612c Tilemap20
6b:6240 Tilemap21
6b:74c3 Tilemap22
6b:7564 Tilemap23
6b:7619 Tilemap24
6e:7289 Tilemap25
6e:5c73 Tilemap26
6e:5414 Tilemap27
78:793e Tilemap28
6f:4566 Tilemap29
6f:4aef Tilemap2a
74:5c14 Tilemap2b
6a:4752 Tilemap2c
6a:4670 Tilemap2d
6f:527d Tilemap2e
6e:758d Tilemap2f
6e:7783 Tilemap30
6e:781b Tilemap31
6f:6bed Tilemap32
6e:4445 Tilemap33
00:0000 Tilemap34
00:0000 Tilemap35