RAM Use

RAM

AddressNameDescription
0000GP_00usually used as a two-byte pointer for indirection
0001GP_01
0002GP_02often used as a two-byte counter
0003GP_03
005C!FlipFlagnon zero to cause interrupt to flip name tables
0066SND_PtrApointer to current music
0067SND_PtrBpointer to current music
006ASND_Sq1Finecurrent value of square 1 fine
006BSND_Sq2Finecurrent value of square 2 fine
006DSND_MusEffBellmusic effect bell-curve envelope counter
006ESND_MusEffRelmusic effect count reload
006FSND_MusEffCntmusic effect current count
00E0??SND_E0???? Set to non-0 to ?? <0:9825
00F4??!BatRamInit????set to 1 when bat-ram has been inited??
00F5TileFlagAset to 5A when scrolling text tiles have been written to VRAM
00F6TileFlagBset to 5A when splash tiles have been written to VRAM
00FCCUR_VScrollcurrent contents of PPU 2005.2nd
00FDCUR_HScrollcurrent contents of PPU 2005.1st
00FECUR_2001current contents of PPU 2001 (a write-only register)
00FFCUR_2000current contents of PPU 2000 (a write-only register)
0305!BckGndBuf32 holds a background treasure info being built
041A!SeqCountrunning count within a splash function
042C!SplashMode0 if on splash LOGO, not-0 if on splash treasure-info
042D!SplashSeqSequence function of splash (lookup for function in tables)
05F0SND_TriFinecurrent value of triangle fine
051D!SetCountused as a "set count" to count multiple vram copy sets by 2:8012
05F5SND_DrumRep?? point to start of drum track for repeat
0600SND_ReqMusicRequest song
0601??SND_601???? something to do with sound
0602SND_ReqMusEffMusic effect request (long music continues to play)
0603??SND_603???? something to do with sound
0604SND_RequestSound effect request (near-death-beep will not preempt another sound). Set upper bit to suspend sounds.
0605SND_CurEffectcurrent playing sound effect
0607SND_CurMusEffcurrent playing music effect
0608SND_DMod1parameter in delta-mod effect
0609SND_CurSongcurrent playing song
060ASND_SongPC_Aoffset within current song for voice A
060BSND_SongPC_Boffset within current song for voice B
060CSND_SongPC_Coffset within current song for voice C
060DSND_SongPC_Doffset within current song for voice D
0610SND_LenReloadmusic event timer reload
0611SND_Timermusic event timer
0618SND_MusEffDelscript pointer for music effect
00680068
00690069
006C006C
05F105F1
05F205F2
05F305F3
05F405F4
05F605F6
06060606
060E060E
060F060F
06120612
06130613
06140614
06150615
06160616
06170617
06190619
061A061A
061B061B
061C061C
061D061D
061E061E
061F061F
00040004
00050005
00060006
00070007
00080008
00090009
000A000A
000B000B
000C000C
000D000D
000E000E
000F000F
00100010
00110011
00120012
00130013
00140014
00150015
00160016
00170017
00180018
00190019
001A001A
001B001B
001C001C
001D001D
00200020
00240024
00270027
00280028
00290029
002E002E
00320032
00340034
003B003B
003C003C
003D003D
00420042
00480048
00500050
00510051
00520052
00590059
005A005A
00630063
00700070
007C007C
007D007D
00830083
00840084
00860086
008A008A
008B008B
00970097
00980098
009C009C
00A200A2
00A500A5
00A900A9
00AC00AC
00AD00AD
00BF00BF
00C000C0
00C600C6
00CC00CC
00D300D3
00D800D8
00E400E4
00E800E8
00EA00EA
00EB00EB
00EC00EC
00F000F0
00F800F8
010E010E
010F010F
02480248
024C024C
03010301
03020302
03030303
03400340
03410341
03420342
03430343
03440344
03460346
03470347
03480348
03490349
034B034B
034E034E
03500350
03510351
03520352
036C036C
03940394
03D003D0
03F803F8
04060406
04130413
04150415
04160416
04210421
042E042E
042F042F
04310431
04380438
04480448
04490449
044A044A
045F045F
046F046F
04700470
04710471
049E049E
04CC04CC
04CE04CE
04E504E5
04F004F0
05040504
05050505
05060506
05080508
05090509
05120512
05130513
051C051C
05220522
05230523
05290529
052B052B
052C052C
052D052D
052F052F
06270627
06560656
06570657
06580658
06590659
065B065B
065D065D
06620662
06640664
06660666
066C066C
066D066D
066E066E
066F066F
06700670
06710671
06720672
06760676
067C067C
067D067D
067E067E
001E001E
00210021
00220022
00230023
00300030
00380038
00400040
00470047
004D004D
00580058
00620062
00710071
00720072
00850085
00A800A8
00AB00AB
00BD00BD
00C100C1
00C200C2
00C300C3
00C400C4
00CE00CE
00CF00CF
00DF00DF
00E200E2
00E500E5
00E600E6
00E700E7
00FA00FA
01000100
01CE01CE
02000200
02010201
02040204
02070207
02080208
020B020B
03000300
03040304
03060306
03070307
03080308
03150315
03160316
03170317
03210321
03250325
03260326
03270327
03280328
03290329
032F032F
03300330
04120412
04170417
04180418
04190419
041B041B
041C041C
041D041D
041F041F
04200420
04220422
04230423
04240424
04250425
04260426
04270427
04280428
04290429
042A042A
04300430
04370437
050A050A
050B050B
050C050C
050D050D
050E050E
05260526
05280528
052E052E
06F006F0
002D002D
004C004C
005F005F
00610061
00750075
00810081
00890089
00990099
009D009D
00A000A0
00AE00AE
00B200B2
00B500B5
00B900B9
00C500C5
00C800C8
00CA00CA
00D000D0
00F700F7
00F900F9
02400240
02440244
034A034A
034C034C
034D034D
034F034F
03540354
03560356
035A035A
03810381
03820382
03830383
03840384
03850385
03860386
038A038A
03960396
03970397
03A903A9
03AA03AA
03AC03AC
03AE03AE
04050405
040A040A
04140414
04320432
04360436
04450445
046C046C
04790479
04860486
04950495
04C004C0
04CF04CF
04D104D1
04D704D7
04D804D8
04D904D9
04DA04DA
04DB04DB
04DC04DC
04DD04DD
04DE04DE
04E604E6
04E704E7
04F504F5
05070507
050F050F
05100510
05110511
05140514
05150515
051B051B
051E051E
051F051F
052A052A
06600660
06650665
00250025
00260026
002B002B
002F002F
00310031
00330033
00360036
00410041
00450045
004E004E
00530053
00540054
00550055
00560056
00570057
005B005B
005D005D
005E005E
00640064
00650065
00730073
00760076
00770077
007B007B
007F007F
00800080
00820082
00870087
008F008F
00900090
00910091
00920092
00950095
009A009A
009B009B
009E009E
00A100A1
00A300A3
00A400A4
00A700A7
00B100B1
00B400B4
00B600B6
00B700B7
00BA00BA
00BC00BC
00BE00BE
00C900C9
00D100D1
00D600D6
00D900D9
00DB00DB
00DE00DE
00E100E1
00E300E3
00E900E9
00ED00ED
00EE00EE
00EF00EF
00F300F3
00FB00FB
010C010C
021C021C
021D021D
021E021E
021F021F
02200220
02210221
02220222
02230223
02490249
024A024A
024B024B
024D024D
024E024E
024F024F
02500250
02510251
02520252
02530253
02540254
02580258
03140314
032C032C
033F033F
035F035F
03A803A8
03BC03BC
04CD04CD
04E404E4
05190519
051A051A
05210521
05240524
05250525
05270527
06360636
06370637
064E064E
065A065A
065E065E
06750675
001F001F
002A002A
002C002C
00390039
003E003E
003F003F
00460046
00740074
008C008C
00930093
00960096
00A600A6
00C700C7
00D400D4
00DA00DA
01370137
01670167
01820182
01A301A3
01A801A8
01C801C8
01FF01FF
02020202
02850285
02860286
02A302A3
02A402A4
02A502A5
02A602A6
03640364
03650365
03A503A5
03C303C3
03C403C4
03FF03FF
04000400
04640464
04830483
04840484
04A304A3
04A404A4
04C304C3
04C404C4
05830583
05840584
05A305A3
06630663
06830683
06C306C3
06FF06FF
07000700
07370737
07420742
077F077F
004A004A
004B004B
00600060
03E403E4
06200620
06610661

Battery-Backed RAM

6530-7FFF cleared on startup if BBR is not valid

AddressNameDescription
6001MARK_Amust be 5A for ram to be valid
652AQ_SG1?? save-game 1 flag? set to FF if BBR is not valid
652BQ_SG2?? save-game 2 flag? set to FF if BBR is not valid
652CQ_SQ3?? save-game 3 flag? set to FF if BBR is not valid
7FFFMARK_Bmust be 5A for ram to be valid
60F060F0
6A4C6A4C
6BAC6BAC
6BAF6BAF
6BB06BB0
6C906C90
6D466D46
6D506D50
6D556D55
6D646D64
6D756D75
6D7C6D7C
6D806D80
6E366E36
6E396E39
6E556E55
6E6E6E6E
6E796E79
6F296F29
6F736F73
6FB66FB6
70137013
701F701F
70C370C3
711B711B
713C713C
71DB71DB
71DE71DE
72487248
730C730C
73147314
73707370
73B573B5
746C746C
74A374A3
74AC74AC
75497549
77DB77DB
77DF77DF
784E784E
78687868
79797979
79887988
79BA79BA
79D079D0
7A2D7A2D
7A827A82
7AA77AA7
7BC27BC2
7BE27BE2
7C167C16
7C547C54
7C9D7C9D
7CDC7CDC
7D297D29
7D537D53
7D5F7D5F
7D867D86
7DAA7DAA
7DC57DC5
7DCB7DCB
7DD17DD1
7DF87DF8
7DFB7DFB
7DFF7DFF
7E267E26
68106810
6A0E6A0E
6D956D95
6D966D96
6D9A6D9A
6D9B6D9B
6DB76DB7
6DF16DF1
6EE96EE9
72407240
72597259
78857885
79157915
792C792C
79867986
79CA79CA
6EFB6EFB
6FB86FB8
70217021
704A704A
706F706F
718C718C
733F733F
74B774B7
75127512
78047804
78B278B2
790C790C
798D798D
79917991
79A579A5
79AF79AF
7AC57AC5
7C967C96
60576057
662A662A
68256825
68276827
68286828
6BA66BA6
6BAB6BAB
6BB16BB1
6BBC6BBC
6D006D00
6E1D6E1D
6E406E40
6E466E46
70807080
70DD70DD
71147114
71167116
718A718A
72747274
72767276
72807280
72827282
728C728C
728E728E
72987298
74AD74AD
752F752F
77A877A8
62046204
62156215
62DF62DF
630D630D
631B631B
683C683C
68BA68BA
68F268F2
69006900
69726972
69AA69AA
69E869E8
6A096A09
6A366A36
6A3A6A3A
6A6A6A6A
6A6E6A6E
6A726A72
6B206B20
6B3A6B3A
6B726B72
6EED6EED
73777377
76DE76DE
79C879C8
7B7B7B7B
7BDD7BDD
7BED7BED
7BF47BF4
7CFF7CFF
7FC77FC7
7FE47FE4
6B926B92
6BAD6BAD
6BAE6BAE
6CC06CC0
6E106E10
6FC16FC1
6FE86FE8
70277027
70AB70AB
711F711F
714F714F
71A571A5
71BB71BB
71ED71ED
73287328
75707570
77D477D4
77E677E6
77E777E7
7B4F7B4F