-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquartet.sym
506 lines (499 loc) · 12.2 KB
/
quartet.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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
00:0010 Jumptable
00:001a MemsetWithIncr
00:0020 WaitVBlank
00:0033 GetConsoleTypeNeg
00:0038 WriteDE
00:0040 VBlankInterrupt
00:0042 TryMovePieceUp
00:0048 LCDCInterrupt
00:004a ToggleMusic2
00:0050 UnkData0050
00:0054 Memset
00:0058 Memset.loop
00:0059 Memset.begin
00:0060 JoypadTransitionInterrupt
00:0072 FXHammer_Update
00:00f7 GetPressedKeys
00:0100 Boot
00:0104 HeaderLogo
00:0134 HeaderTitle
00:013f HeaderManufacturerCode
00:0143 HeaderCGBFlag
00:0144 HeaderNewLicenseeCode
00:0146 HeaderSGBFlag
00:0147 HeaderCartridgeType
00:0148 HeaderROMSize
00:0149 HeaderRAMSize
00:014a HeaderDestinationCode
00:014b HeaderOldLicenseeCode
00:014c HeaderMaskROMVersion
00:014d HeaderComplementCheck
00:014e HeaderGlobalChecksum
00:0150 GameplaySpriteTiles
00:01f7 UnCountCurPiece
00:0200 PatternTable
00:02be CompressedGameplayTiles
00:06ef CompressedMackerelTiles
00:0a07 FacesTiles
00:0cc3 PausedTiles
00:0f79 UnkCompressedBlob
00:120f HowToToTitleScreen
00:1215 TitleScreen
00:122d TitleScreen.notPracticing
00:122f SetupTitleScreen
00:1258 SetupTitleScreen.agb
00:127b SetupTitleScreen.cgb
00:129c SetupTitleScreen.color
00:12c9 SetupTitleScreen.sgb
00:12d2 SetupTitleScreen.dmg
00:13bf SetupTitleScreen.invertFont
00:13e0 SetupTitleScreen.useInvertedFont
00:1418 TitleScreenLoop
00:1434 TitleScreenUpdate
00:146f CompressedSGBTiles
00:16bd StartGame
00:16f4 StartGame.notSGB
00:17a3 StartGame.notColor
00:17ab StartGame.skipScoreDraw
00:1852 StartGame.skipCountdown
00:1885 StartGame.countdown
00:188b StartGame.loop
00:18a1 NextPiece
00:18bf Resume
00:18c3 Resume.loop
00:18f2 CompressedCreditsText
00:1b08 HowToTiles
00:1cbb CompressedGameplayBorder
00:1e64 CompressedMusicData
00:1fff UnkTiles
00:2193 Player_MusicUpdate
00:2320 UnkData2320
00:247f PauseGame
00:248a PauseGame.notColor
00:2498 PauseGame.color
00:24b1 PauseGame.checkSGB
00:24c3 PauseGame.notSGB
00:252b PauseGame.noAttrmap
00:252e PauseGame.loop
00:2546 PauseGame.toggleMusic
00:254e PauseGame.toggleSfx
00:2556 Unpause
00:255e Unpause.notColor
00:2568 Unpause.color
00:2575 Unpause.reload
00:259f Unpause.sgb
00:25b0 Unpause.dmg
00:25c5 Unpause.cgb
00:25d4 Unpause.done
00:25d7 CompressedStatusTiles
00:2716 PerformVRAMTransfer
00:2749 MASK_ENBlackPacket
00:2759 MASK_ENCancelPacket
00:2769 OBJ_TRNPatchPart1
00:2779 OBJ_TRNPatchPart2
00:2789 OBJ_TRNPatchPart3
00:2799 OBJ_TRNPatchPart4
00:27a9 OBJ_TRNPatchPart5
00:27b9 OBJ_TRNPatchPart6
00:27c9 OBJ_TRNPatchPart7
00:27d9 OBJ_TRNPatchPart8
00:27e9 CHR_TRNPacket
00:27f9 CHR_TRN2ndHalfPacket
00:2809 PCT_TRNPacket
00:2819 OnePlayerPacket
00:2829 TwoPlayerPacket
00:2839 OBJ_TRNPacket
00:2842 Font
00:295b CopyrightScreens
00:2968 CopyrightScreens.sgb
00:2970 CopyrightScreens.cgb
00:297f CopyrightScreens.notAGB
00:2990 CopyrightScreens.noColor
00:2a3b jr_000_29e4.notAGB
00:2a45 jr_000_29e4.notColor
00:2a67 jr_000_2a4a.fadeOutBGP
00:2a6b jr_000_2a4a.doneFadingOut
00:2b7e Player_MusicUpdateCH3
00:2d7a RNCUnpack
00:2f3a HowToPlay
00:2f61 HowToPlay.color
00:2f82 HowToPlay.sgb
00:2f8b HowToPlay.dmg
00:2fe4 HowToPlay.again
00:3016 GameplayTilemap
00:30e7 GameplayPalettes
00:3167 GameplayAttrPacket
00:316f UploadMenuPalettes
00:3178 UploadMenuPalettes.pal01
00:3188 UploadMenuPalettes.pal23
00:3198 PausedPalPacket
00:31a8 PausedAttrPacket
00:31b8 MaskTileIDs
00:3200 SFXPriorities
00:320f Unk320F
00:32d0 HowToCGBPals
00:32e8 HowToAGBPals
00:330f PausedTilemap
00:3458 GameplayInitialOAM
00:34f8 OAMDMA
00:3558 CountdownTiles
00:36e8 VRAMMemcpy
00:36ec VRAMMemcpy.loop
00:36f9 VRAMMemcpy.begin
00:3740 Player_MusicUpdateCH2
00:37f2 Memcpy
00:37f6 Memcpy.loop
00:37f9 Memcpy.begin
00:38e1 CopyRowsInterruptible
00:3950 FadeGameplayIn
00:395d FadeGameplayIn.sgb
00:3966 FadeGameplayIn.dmg
00:396e FadeGameplayIn.cgb
00:399c FadeGameplayIn.agb
00:3a98 OptionsLoop
00:3aaf Options
00:3c20 Player_MusicUpdateCH1
00:3cd1 UnpackFont
00:3cda PrintStringAlignLeft
00:3cdd PrintStringAlignLeft.loop
00:3ce0 PrintStringAlignLeft.begin
00:3ce6 PrintStringCentered
00:3ce9 PrintStringCentered.loop
00:3cec PrintStringCentered.begin
00:3cf2 PrintStringAlignRight
00:3cf5 PrintStringAlignRight.loop
00:3cf8 PrintStringAlignRight.begin
00:3cfe UnkData3CFE
00:3d30 AppearMackerelLogo
00:3d45 AppearMackerelLogo.loop
00:3d56 AppearMackerelLogo.end
00:3d62 AppearMackerelLogo.oneFrame
00:3d7c AppearMackerelLogo.noBGP
00:3da8 AppearMackerelLogo.skipNinLogoFade
00:3e50 HowToTilemap
00:3eca HighlightOption
00:3f48 TryMovePiece
00:3fbf DrawHighScoreTilemap
00:4020 CompressedMackerelMap
00:4120 Player_MusicRestart
00:4132 Player_MusicStart
00:418c Player_MusicStop
00:4193 UnkVBlankHandler
00:4218 TitleScreenTilemap
00:4286 DetectSGB
00:42e7 DetectSGB.sgb
00:435b TickCountdown
00:439d TickCountdown.agb
00:43a1 TickCountdown.cgb
00:43aa TickCountdown.sgb
00:43af TickCountdown.dmg
00:43c0 Player_MusicUpdateCH4
00:4423 Init
00:4450 Init.notSGB
00:4534 TimerExpired
00:45e2 OptionsValidate
00:4600 FreqTable
00:46e0 JumpTable
00:4700 VibratoTable
00:4860 PrintLineAlignLeft
00:4863 PrintLineAlignRight
00:486b PrintLineCentered
00:4873 PrintLine
00:48a5 PrintLine.newline
00:48af UpdateDisplayedHighScore
00:48fa LoadGameplayGfx
00:49d3 BounceHeads
00:4a1a DrawRandomPiece
00:4a4c DrawRandomPiece.cgb
00:4a51 DrawRandomPiece.agb
00:4a54 DrawRandomPiece.color
00:4a5c DrawRandomPiece.notColor
00:4aa3 LoadSRAM
00:4ae7 DrawScoreTilemap
00:4b6b UnkPal2CGB
00:4b8b UnkPal2AGB
00:4bab UnkPalCGB
00:4bcb UnkPalAGB
00:4c6b CountdownPalettesCGB
00:4c8b CountdownPalettesAGB
00:4ceb FadeAllDMGPalettes
00:4d06 FadeAllDMGPalettes.fadeOnce
00:4d29 UpdateDisplayedScore
00:4d67 EndGame
00:4d91 EndGame.sgb
00:4da0 EndGame.notSGB
00:4ddf SendSGBPacket
00:4de8 SendSGBPacket.next
00:4ded SendSGBPacket.begin
00:4df6 SendSGBPacket.byteLoop
00:4dfa SendSGBPacket.bitLoop
00:4e1b WriteNextPieceSprite
00:4e4b WriteNextPieceSprite.notColor
00:4e4d WriteNextPieceSprite.gotAttr
00:4e56 WritePiecesSGBAttrs
00:4e91 FadeBGPTowards
00:4ea7 FadeBGPTowardsConsoleDependent
00:4ec2 StepBGPFade
00:4f03 TitleScreenValidate
00:4f10 TitleScreenValidate.notOptions
00:4f27 TitleScreenValidate.notColor
00:4f28 Practice
00:4f32 NewGame
00:4f3b EntryPoint
00:4f48 EntryPoint.notColor
00:4f72 HowToPaletteFade
00:4f7f HowToPaletteFade.notColor
00:4f82 HowToPaletteFade.agb
00:4f8f HowToPaletteFade.cgb
00:4f9a HowToPaletteFade.color
00:4fa9 WriteHidingMaskSprites
00:4fdd WriteRevealingMaskSprites
00:5011 FadeBufAllPalettesBlack
00:5019 FadeBufAllPalettesBlack.notColor
00:5021 FadeBufAllPalettesBlack.color
00:5077 Player_Initialize
00:50a9 HighDigitTilemaps
00:510d PatchOBJ_TRN
00:513d Lerp
00:5165 RoundUp
00:5199 UploadCountdownPalette
00:51c3 PlaySFXFromA
00:51c4 PlaySFX
00:51ce PlaySFX.samePrio
00:51ec KillSFX
00:5215 PollKeys
00:5265 WriteOBJPalBuf
00:526d WriteBGPalBuf
00:5273 WritePalBuf
00:5278 WritePalBuf.loop
00:528d Player_MusicUpdateFreqSlide
00:52b4 SetPausedPalette
00:52db WritePaletteFromArray
00:5302 MenuGoUp
00:5314 MenuGoDown
00:5328 DrawLivesCounter
00:5332 DrawLivesCounter.loop
00:534c FadeBufTowardsBlack
00:5354 FadeBufTowardsBlack.notColor
00:5357 FadeBufTowardsBlack.color
00:5370 CommitPalettes
00:537a CommitPalettes.writePalettes
00:5380 CommitPalettes.writePalette
00:5394 RevealPiece
00:53fd ChangeDifficulty
00:5420 HowToPalettes
00:5443 FadePalBufTowardsOther
00:5464 ComputeLineWidth
00:5471 ComputeLineWidth.loop
00:547f ComputeLineWidth.done
00:5485 UpdatePaletteBuffers
00:548d UpdatePaletteBuffers.dmg
00:5490 UpdatePaletteBuffers.cgb
00:54a6 TitleScreenAttrmap
00:54c7 FadeBGPByte
00:5507 UpdateShadowBGP
00:5527 TitleScreenAttrPacket
00:5547 PausedCGBPalette
00:5557 PausedAGBPalette
00:55a6 ExtractRGB555Channels
00:55c5 FadeUnpackedCGBColorsTowards
00:55c9 FadeUnpackedCGBColorsTowards.loop
00:55d4 FadeUnpackedCGBColorsTowards.decrease
00:55d5 FadeUnpackedCGBColorsTowards.again
00:55dd FadeUnpackedCGBColorsTowards.decrease2
00:55de FadeUnpackedCGBColorsTowards.ok
00:55e4 PickSomethingRandomly
00:55e8 PickSomethingRandomly.tryAgain
00:55f6 PickSomethingRandomly.ok
00:563d FillBoxTilemap
00:5656 InitOAMTiles
00:565d InitOAMTiles.loop
00:5672 CheckSRAM
00:568e DrawDigitPair
00:569d DrawDigit
00:56a9 MarkSRAMValid
00:56dc RepackColors
00:56f5 VRAMMemset
00:570d UpdateRNGAtomic
00:5712 UpdateRNG
00:5725 Player_SongSelect
00:572f Player_SongSelect.ptrs
00:573d PickRandomPiece
00:5755 ToggleTilemapOnScanline
00:576d ToggleTilemapOnScanline2
00:5785 SaveTriplet
00:57b4 WriteDifficultyTilemap
00:57f9 LerpVBlankHandler
00:5810 HowToAttrPacket
00:5818 SendHowToPalette
00:581e SendHowToPalette.packet
00:583d UnpackBCDDigits
00:5853 WriteNewPiecesSGBAttrs
00:5869 SendPAL_PRI
00:586f SendPAL_PRI.packet
00:587f CopyRows
00:58be DrawPiece
00:58e8 RestoreBGP
00:58fc ToggleMusic
00:5910 RepackBCDDigits
00:5936 LerpSTATHandler
00:5949 TransferSGBTiles
00:595c TransferSGBBorder
00:596f SGBWait
00:5970 SGBWait.outer
00:5974 SGBWait.inner
00:5982 MusicHandler
00:5994 QuadrupleHL
00:59a5 DivideHLBy4
00:59b6 WaitUntilAnyKeyPressed
00:59b8 WaitUntilKeyPressed
00:59c7 AddPiecePixelOffset
00:59d8 ClearLastSprite
00:59e9 WriteLYC
00:59ec ToggleVertScroll
00:59f3 ToggleTilemap
00:59fa TitleScreenPreUpdate
00:5a0b PausedAttrmap
00:5a1c SaveOptions
00:5a3d CopyrightPalPacket
00:5a4d MaskSpriteData
00:5a5d CGBInitPalettes
00:5a65 AGBInitPalettes
00:5a6d WaitVBlankBeginning
00:5a74 WaitVBlankBeginning.notInVBlank
00:5ab8 UpdateAudio
00:5ac7 TitleScreenPosUpdate
00:5ad6 TurnLCDOff
00:5ae5 WriteTrampoline
00:5af0 KillTrampoline
00:5b01 SGBDetectionDelay
00:5b0f ClearVRAM
00:5b1d WaitNFramesOrKeyPressed
00:5b37 Wait5Frames
00:5b39 WaitNFrames
00:5b3b WaitNFrames.loop
00:5b43 MoveSprites
00:5b4f DefaultVBlankHandler
00:5b5a StubIntHandler
00:5b5b IndexUnkDifficultyTable
00:5b73 GetHeadColorIndex
00:5b7f UnkDifficultyTable
00:5bac WaitUserNFrames
00:5bad WaitUserNFrames.loop
00:5bb6 CopySpriteTileIDs
00:5bc0 SetSpritePositions
00:5bd4 FillMiddleBoxTilemap
00:5bdd GetHighScorePtr
00:5be9 DifficultyTilemap
00:5bf7 SendSGBPacketAndWait
00:5bff UnfreezeSGBScreen
00:5c05 UnfreezeSGBScreen.packet
00:5c07 FreezeSGBScreen
00:5c0d FreezeSGBScreen.packet
00:5c0f MakeSGBScreenColor0
00:5c15 MakeSGBScreenColor0.packet
00:5c17 SubHLDE
00:5c1e GetSign
00:5c25 WaitLY
00:5c28 WaitLY.loop
00:5c2c TryMovePieceLeft
00:5c33 TryMovePieceRight
00:5c3a TryMovePieceDown
00:5c41 EnableTimer
00:5c48 ToggleSFX
00:5c56 TurnLCDOn
00:5c5d FadeBGPTowardsConsoleInverted
00:5c62 FadeBGPTowardsConsoleBlack
00:5c67 FadeBGPTowardsConsoleNormal
00:5c6c FadeBGPTowardsConsoleWhite
00:5c74 DisableTimer
00:5c78 LivesTilemaps
00:8000 vMenuFacesTiles
00:8400 vStatusTiles
00:8800 vGameplayTiles
00:9300 vMiddleBoxTiles
00:9400 vGameplayFacesTiles
00:A000 sMagic
00:A004 sMusicEnabled
00:A005 sDisableSFX
00:A006 sDifficulty
00:A008 UnkA008
00:C000 wBGPalBuf
00:C040 wOBJPalBuf
00:C080 wUnpackedPalBuf1
00:C140 wUnpackedPalBuf2
00:C170 wUnpackedPalBuf3
00:C200 wGlyphWidths
00:C400 wDecompressionBuf
00:CC00 wTextDecompBuf
01:D000 wTilemap
01:D1A0 wUnkBuf
01:D700 wShadowOAM
01:D7A0 wDisplayedScoreTilemap
01:D7AA wUnk
01:D7AF wDisplayedHighScoreTilemap
01:D7C0 wPulseInstrPanningTable
01:D7D0 wWaveInstrPanningTable
01:D7E0 wNoiseInstrPanningTable
01:D800 wPulseVolAndLenData
01:D900 wPulseTransposeAndWidthData
01:DA00 wWaveNumAndLenData
01:DB00 wWaveTransposeAndVolData
01:DC00 wWaveforms
01:DD00 wNoiseVolAndLenData
01:DE00 wNoiseModeData
00:FF80 hInputLY
00:FF81 hInputDIV
00:FF82 hEasyHighScore
00:FF85 hNormalHScore
00:FF88 hHardHighScore
00:FF8B hPractice
00:FF8C hDifficulty
00:FF8D hUnkBufFF8D
00:FF8D hMenuCursorPos
00:FF8D hSCYFractionalPart
00:FF8E hSCYIntegerPart
00:FF8E hFrameCounterPos
00:FF8F hTitleScreenFadeTimer
00:FF90 hUnkFF90
00:FF91 hUnkFF91
00:FF92 hUnkFF92
00:FF93 hTimerEnabled
00:FF94 hPlacementTimer
00:FF95 hRandomColor
00:FF96 hRandomPiece
00:FF97 hUnkBufFF97
00:FFA7 hCurScore
00:FFAA hDisplayedScore
00:FFAD hCurHighScore
00:FFB0 hUnkFFB0
00:FFB1 hLives
00:FFB2 hRandomOutput
00:FFB3 hMovementDir
00:FFB4 hUnkPtrFFB4
00:FFB6 hCountdownPaletteBasePtr
00:FFB8 hOAMDMA
00:FFC0 hIsMusStopped
00:FFC1 hCarillonFFC1
00:FFC2 hCarillonFFC2
00:FFC3 hCarillonFFC3
00:FFC5 hCarillonFFC5
00:FFC6 hCarillonFFC6
00:FFCC hCarillonFFCC
00:FFD2 hCarillonFFD2
00:FFD4 hCarillonFFD4
00:FFD9 hCarillonFFD9
00:FFDC hCarillonFFDC
00:FFDD hMusModulate
00:FFE6 hMusSamCount
00:FFED hFXHammerUpdate
00:FFEE hFXHammerSFXCH2
00:FFEF hFXHammerSFXCH4
00:FFF0 hSTATTrampoline
00:FFF3 hVBlankTrampoline
00:FFF6 hVBlankFlag
00:FFF7 hMusicEnabled
00:FFF8 hDisableSFX
00:FFFC hChangedKeys
00:FFFD hCurKeys
00:FFFE hConsoleType