Crystal Beans from Dungeon Explorer/Music engine ROM map

From Data Crystal
Jump to navigation Jump to search

This is a sub-page of Crystal Beans from Dungeon Explorer.

  • 120000-120023 (36) = Music engine asm code (jumps to other functions)
  • 120024-120029 (6) = ASCII "MAPU00"
  • 12002A-12002F (6) = Unknown data, doesn't seem to be referenced
  • 120030-12038E (863) = Music engine asm code
    • 120030 = InitAPU?()
    • 120087 = UploadSong?(byte songIndex<A>, byte numPatterns?<X>, byte <Y>)
    • 120151 = UploadPattern?(byte patternIndex<A>)
    • 1201EC = SelectInstrument?(byte instrument<A>)
    • 120204 = UploadInstrument?(byte instIndex<A>)
    • 12028E = SrcAddrAddition(word addr<X>, word bank<A>)
    • 1202C9 = StopSong?()
    • 120305 = SendToAPU(word numToTransfer<X>, word apuTargetAddr<Y>)
      • if X = 0, send terminating block
    • 120378 = InitSPCTransfer()
  • 12038F-1204FF (369) = Unused/Padding
  • 120500-1207FF (4864) = SPC Program

The following pointers use 121800 as the base address

  • 121800-121801 (2) = Pointer to song patterns
  • 121802-121803 (2) = Number of songs
  • 121804-121837 (52) = Song pattern order pointer table (26 16-bits pointers)
  • 121838-121C0C (981) = Songs pattern order (arrays of pattern indices terminated by a $FF byte)
  • 121C0D-121C0E (2) = Number of patterns
  • 121C0F-121CC6 (184) = Pattern pointer table (92 16-bits pointers)
  • 121CC7-121CC8 (2) = Empty pattern
  • 121CC9-1222EC (1572) = Pattern 0
  • 1222ED-122308 (28) = Pattern 1
  • 122309-122321 (25) = Pattern 2
  • 122322-122341 (32) = Pattern 3
  • 122342-122369 (40) = Pattern 4
  • 12236A-12239B (50) = Pattern 5
  • 12239C-1223C3 (40) = Pattern 6
  • 1223C4-1223EA (39) = Pattern 7
  • 1223EB-122412 (40) = Pattern 8
  • 122413-122445 (51) = Pattern 9
  • 122446-122476 (49) = Pattern 10
  • 122477-1224A1 (43) = Pattern 11
  • 1224A2-1224D2 (49) = Pattern 12
  • 1224D3-122568 (150) = Pattern 13
  • 122569-122590 (40) = Pattern 14
  • 122591-1225B1 (33) = Pattern 15
  • 1225B2-1225D1 (32) = Pattern 16
  • 1225D2-122658 (135) = Pattern 17
  • 122659-12266F (23) = Pattern 18
  • 122670-12268F (32) = Pattern 19
  • 122690-1226A8 (25) = Pattern 20
  • 1226A9-1226CA (34) = Pattern 21
  • 1226CB-1226EF (37) = Pattern 22
  • 1226F0-122704 (21) = Pattern 23
  • 122705-12275B (87) = Pattern 24
  • 12275C-12277C (33) = Pattern 25
  • 12277D-122796 (26) = Pattern 26
  • 122797-1227B2 (28) = Pattern 27
  • 1227B3-1227D6 (36) = Pattern 28
  • 1227D7-1227EF (25) = Pattern 29
  • 1227F0-12281A (43) = Pattern 30
  • 12281B-122848 (46) = Pattern 31
  • 122849-12286C (36) = Pattern 32
  • 12286D-12289D (49) = Pattern 33
  • 12289E-1228B5 (24) = Pattern 34
  • 1228B6-1228D3 (30) = Pattern 35
  • 1228D4-1228ED (26) = Pattern 36
  • 1228EE-122906 (25) = Pattern 37
  • 122907-122921 (27) = Pattern 38
  • 122922-122938 (23) = Pattern 39
  • 122939-122951 (25) = Pattern 40
  • 122952-12296E (29) = Pattern 41
  • 12296F-122988 (26) = Pattern 42
  • 122989-1229AB (35) = Pattern 43
  • 1229AC-1229FC (81) = Pattern 44
  • 1229FD-122A3F (67) = Pattern 45
  • 122A40-122A67 (40) = Pattern 46
  • 122A68-122A9C (53) = Pattern 47
  • 122A9D-122AB3 (23) = Pattern 48
  • 122AB4-122ADD (42) = Pattern 49
  • 122ADE-122AF7 (26) = Pattern 50
  • 122AF8-122B18 (33) = Pattern 51
  • 122B19-122B3E (38) = Pattern 52
  • 122B3F-122B5C (30) = Pattern 53
  • 122B5D-122B7B (31) = Pattern 54
  • 122B7C-122BAE (51) = Pattern 55
  • 122BAF-122BD8 (42) = Pattern 56
  • 122BD9-122BF9 (33) = Pattern 57
  • 122BFA-122FF7 (1022) = Pattern 58
  • 122FF8-12302C (53) = Pattern 59
  • 12302D-12304D (33) = Pattern 60
  • 12304E-12306C (31) = Pattern 61
  • 12306D-123366 (762) = Pattern 62
  • 123367-1239DC (1654) = Pattern 63
  • 1239DD-123A10 (52) = Pattern 64
  • 123A11-123A5C (76) = Pattern 65
  • 123A5D-123A8F (51) = Pattern 66
  • 123A90-123E25 (918) = Pattern 67
  • 123E26-12403F (538) = Pattern 68
  • 124040-1245CA (1419) = Pattern 69
  • 1245CB-124B85 (1467) = Pattern 70
  • 124B86-125073 (1262) = Pattern 71
  • 125074-125655 (1506) = Pattern 72
  • 125656-125BBF (1386) = Pattern 73
  • 125BC0-125FA9 (1002) = Pattern 74
  • 125FAA-126359 (944) = Pattern 75
  • 12635A-1269E0 (1671) = Pattern 76
  • 1269E1-126E3A (1114) = Pattern 77
  • 126E3B-127445 (1547) = Pattern 78
  • 127446-127A4A (1541) = Pattern 79
  • 127A4B-127BCB (385) = Pattern 80
  • 127BCC-127CD3 (264) = Pattern 81
  • 127CD4-128377 (1700) = Pattern 82
  • 128378-12847D (262) = Pattern 83
  • 12847E-128F2B (2734) = Pattern 84
  • 128F2C-1292B0 (901) = Pattern 85
  • 1292B1-1294A7 (503) = Pattern 86
  • 1294A8-1294D4 (45) = Pattern 87
  • 1294D5-12982B (855) = Pattern 88
  • 12982C-12A08C (2145) = Pattern 89
  • 12A08D-12A0FF (115) = Unused/Padding
  • 12A100-12A4BF (960) = Instruments
  • 12A4C0-12A5F1 (306) = BRR Samples (padded to word boundary with 0xFF)
  • 12A5F2-12CED5 (10468) = BRR Samples (padded to word boundary with 0xFF)
  • 12CED6-12CF27 (82) = BRR Samples (padded to word boundary with 0xFF)
  • 12CF28-12DD53 (3628) = BRR Samples (padded to word boundary with 0xFF)
  • 12DD54-12DD9B (72) = BRR Samples (padded to word boundary with 0xFF)
  • 12DD9C-12EF93 (4600) = BRR Samples (padded to word boundary with 0xFF)
  • 12EF94-12F369 (982) = BRR Samples (padded to word boundary with 0xFF)
  • 12F36A-130449 (4320) = BRR Samples (padded to word boundary with 0xFF)
  • 13044A-1304D9 (144) = BRR Samples (padded to word boundary with 0xFF)
  • 1304DA-130CA7 (1998) = BRR Samples (padded to word boundary with 0xFF)
  • 130CA8-130E57 (432) = BRR Samples (padded to word boundary with 0xFF)
  • 130E58-130EF1 (154) = BRR Samples (padded to word boundary with 0xFF)
  • 130EF2-130F4B (90) = BRR Samples (padded to word boundary with 0xFF)
  • 130F4C-13119D (594) = BRR Samples (padded to word boundary with 0xFF)
  • 13119E-131275 (216) = BRR Samples (padded to word boundary with 0xFF)
  • 131276-13145B (486) = BRR Samples (padded to word boundary with 0xFF)
  • 13145C-13172B (720) = BRR Samples (padded to word boundary with 0xFF)
  • 13172C-131B1B (1008) = BRR Samples (padded to word boundary with 0xFF)
  • 131B1C-131D6D (594) = BRR Samples (padded to word boundary with 0xFF)
  • 131D6E-131FBF (594) = BRR Samples (padded to word boundary with 0xFF)
  • 131FC0-13202B (108) = BRR Samples (padded to word boundary with 0xFF)
  • 13202C-132CB9 (3214) = BRR Samples (padded to word boundary with 0xFF)
  • 132CBA-132F4B (658) = BRR Samples (padded to word boundary with 0xFF)
  • 132F4C-132FB7 (108) = BRR Samples (padded to word boundary with 0xFF)
  • 132FB8-13303F (136) = BRR Samples (padded to word boundary with 0xFF)
  • 133040-133291 (594) = BRR Samples (padded to word boundary with 0xFF)
  • 133292-133481 (496) = BRR Samples (padded to word boundary with 0xFF)
  • 133482-133523 (162) = BRR Samples (padded to word boundary with 0xFF)
  • 133524-13357D (90) = BRR Samples (padded to word boundary with 0xFF)
  • 13357E-134145 (3016) = BRR Samples (padded to word boundary with 0xFF)
  • 134146-134F71 (3628) = BRR Samples (padded to word boundary with 0xFF)
  • 134F72-136615 (5796) = BRR Samples (padded to word boundary with 0xFF)
  • 136616-138103 (6894) = BRR Samples (padded to word boundary with 0xFF)
  • 138104-1383E5 (738) = BRR Samples (padded to word boundary with 0xFF)
  • 1383E6-1386F5 (784) = BRR Samples (padded to word boundary with 0xFF)
  • 1386F6-138A4D (856) = BRR Samples (padded to word boundary with 0xFF)
  • 138A4E-1394EB (2718) = BRR Samples (padded to word boundary with 0xFF)
  • 1394EC-13A355 (3690) = BRR Samples (padded to word boundary with 0xFF)
  • 13A356-13AB51 (2044) = BRR Samples (padded to word boundary with 0xFF)
  • 13AB52-13B0D7 (1414) = BRR Samples (padded to word boundary with 0xFF)
  • 13B0D8-13C9FB (6436) = BRR Samples (padded to word boundary with 0xFF)
  • 13C9FC-13D30D (2322) = BRR Samples (padded to word boundary with 0xFF)
  • 13D30E-13DB47 (2106) = BRR Samples (padded to word boundary with 0xFF)
  • 13DB48-13DB75 (46) = BRR Samples (padded to word boundary with 0xFF)
  • 13DB76-13E38B (2070) = BRR Samples (padded to word boundary with 0xFF)
  • 13E38C-13EFA3 (3096) = BRR Samples (padded to word boundary with 0xFF)
  • 13EFA4-13FDF3 (3664) = BRR Samples (padded to word boundary with 0xFF)
  • 13FDF4-140B97 (3492) = BRR Samples (padded to word boundary with 0xFF)
  • 140B98-140BD7 (64) = BRR Samples (padded to word boundary with 0xFF)
  • 140BD8-140BFB (36) = BRR Samples (padded to word boundary with 0xFF)
  • 140BFC-140EF9 (766) = BRR Samples (padded to word boundary with 0xFF)
  • 140EFA-14102B (306) = BRR Samples (padded to word boundary with 0xFF)
  • 14102C-14107D (82) = BRR Samples (padded to word boundary with 0xFF)
  • 14107E-141573 (1270) = BRR Samples (padded to word boundary with 0xFF)
  • 141574-141597 (36) = BRR Samples (padded to word boundary with 0xFF)
  • 141598-14385D (8902) = BRR Samples (padded to word boundary with 0xFF)
  • 14385E-143A0D (432) = BRR Samples (padded to word boundary with 0xFF)
  • 143A0E-143BBD (432) = BRR Samples (padded to word boundary with 0xFF)
  • 143BBE-144C31 (4212) = BRR Samples (padded to word boundary with 0xFF)
  • 144C32-145FFF (5070) = BRR Samples (padded to word boundary with 0xFF)
  • 145FFD-145FFF (3) = Unused/Padding