Crystal Beans from Dungeon Explorer/ROM map: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Added cutscene data info)
(Added core engine info)
Line 4: Line 4:
* <tt>- ()</tt> =  
* <tt>- ()</tt> =  
-->
-->
==Overview==
This present the layout of the ROM. Data with unknown function is omitted. The start of asm code whose function is known is mentioned under the code block definition.
==Core engine==
* <tt>000000-007E2E (32302)</tt> = Core engine asm code
** <tt>000000</tt> = IRQ handler
*** returns carry set if mouse is plugged
** <tt>000048</tt> = BRK handler
** <tt>000060</tt> = Party:PreInitMembers()
** <tt>000093</tt> = Party:InitActiveMembers()
** <tt>0000B8</tt> = Party:InitMembers()
** <tt>0000DC</tt> = ClearShadowRAM()
** <tt>000103</tt> = CharInfoArea:InitTextTilemapVRAM()
** <tt>00011F</tt> = InitOAMData()
** <tt>0002BC</tt> = HandleMapObjectsEvents?()
** <tt>0002E9</tt> = HandleEvents?()
** <tt>000551</tt> = Map:ShowVisibleObjs_S(byte levelIndex<$68>, byte RoomIndex<$67>)
** <tt>000FB0</tt> = HandleDemonGutsBossDlg?()
** <tt>001A6B</tt> = HandleItemPicked?(byte objOfs<X>)
** <tt>001A9A</tt> = CallPickedItemHandler(byte item<A>, byte objOfs<X>)
** <tt>001AAB</tt> = Obj:IntBoosterPicked()
*** This item was removed from finished game
** <tt>001AD2</tt> = Obj:AtkBoosterPicked()
*** This item was removed from finished game
** <tt>001AF9</tt> = Obj:BootsPicked(byte objOfs<X>)
** <tt>001B20</tt> = Obj:StrBoosterPicked()
*** This item was removed from finished game
** <tt>001B47</tt> = Obj:BigHeartPicked(byte objOfs<X>)
** <tt>001B5E</tt> = Obj:BeanPicked(byte objOfs<X>)
** <tt>001B8C</tt> = Obj:WhiteJarPicked(byte objOfs<X>)
** <tt>001BAC</tt> = Obj:BlackSkullPicked(byte objOfs<X>)
** <tt>001BCC</tt> = Obj:ScareEnemiesItemPicked()
*** This item was removed from finished game
** <tt>001BED</tt> = Obj:ConfuseEnemiesItemPicked()
*** This item was removed from finished game
** <tt>001C0E</tt> = Obj:MirrorPicked(byte objOfs<X>)
** <tt>001C28</tt> = Obj:LittleHeartPicked(byte objOfs<X>)
** <tt>001C54</tt> = Obj:CapePicked(byte objOfs<X>)
** <tt>001C80</tt> = Obj:UnkEffectOnEnemiesItemPicked()
*** This item was removed from finished game
** <tt>001CBE</tt> = Obj:RemoveItemAndPlaySound(byte objOfx<X>)
** <tt>001CD8</tt> = SetLevelFlag_S(byte bitIndex<A>, byte levelIndex<$68>)
** <tt>001D64</tt> = WaitForPlayerToPickGem()
** <tt>001DD2</tt> = LevelUpStat(byte statIndex<$DE>, byte memberIndex<$133A>)
** <tt>0021B3</tt> = SetPalette(byte palIndex<X>)
** <tt>002692</tt> = HandleThousandValleysBoss1Dlg?()
** <tt>002B0A</tt> = HandleThousandValleysBoss2Dlg?()
** <tt>0033A2</tt> = HandleShoalTunnelBossDlg?()
** <tt>003A0D</tt> = HandleDaimonHiddenIslandBoss1Dlg?()
** <tt>0042EE</tt> = HandleDaimonHiddenIslandBoss3Dlg?()
** <tt>004D2A</tt> = HandleGarnetCastleBoss2DlgAfter?()
** <tt>005083</tt> = HandleGarnetCastleBoss2DlgBefore?()
** <tt>00542C</tt> = HandleBloodstoneCastleBoss2DlgAfter?()
** <tt>005776</tt> = HandleBloodstoneCastleBoss2DlgBefore?()
** <tt>007659</tt> = Dlg:Code22-Subcode03Handler()
** <tt>0076BF</tt> = SetLevelUpRoom()
** <tt>007722</tt> = Dlg:Code22-Subcode04Handler()
** <tt>007735</tt> = Dlg:Code22-Subcode05Handler()
** <tt>007761</tt> = Dlg:Code22-Subcode06Handler()
** <tt>0077D5</tt> = ThousandValleysGasMaskCheck()
** <tt>0077F4</tt> = Dlg:Code22-Subcode08Handler()
** <tt>007859</tt> = Dlg:Code22-Subcode09Handler()
** <tt>007867</tt> = FirstDialogWithTheKing()
** <tt>007885</tt> = LabyrinthMoonlightLampCheck()
** <tt>0078D8</tt> = Dlg:Code22-Subcode0BHandler()
** <tt>0078E9</tt> = Dlg:Code22-Subcode0DHandler()
** <tt>007905</tt> = Dlg:Code22-Subcode11Handler()
** <tt>00790F</tt> = Dlg:Code22-Subcode12Handler()
*** Remove 5 black skulls from current player or change string if he doesn't have enough
** <tt>007935</tt> = Dlg:Code22-Subcode13Handler()
** <tt>007968</tt> = HandleThiefJoiningRoomDlg()
** <tt>007987</tt> = HandleRobotBrainRoomDlg()
** <tt>0079A9</tt> = Dlg:Code22-Subcode19Handler()
** <tt>0079EA</tt> = WorldMap:SelectPlace()
** <tt>007B97</tt> = Dlg:LoadChosenPlaceNamePtr()
** <tt>007B9F</tt> = Dlg:LoadCurPlaceNamePtr()
** <tt>007BF5</tt> = byte <X> WorldMap:HandleChoosePlaceInput()
* <tt>008000- ()</tt> = Core engine asm code and data
** <tt>008000</tt> = ABORT handler
** <tt>008375</tt> = CharInfoArea:SetFrame()
** <tt>0083CC-0083E5 (26)</tt> = [[Super Nintendo:Direct HDMA|Direct HDMA]] table for initial BG1HOFS data
** <tt>0083E6-0083EE (9)</tt> = [[Super Nintendo:Direct HDMA|Direct HDMA]] table for initial BGMODE data
** <tt>0083EF-0083FE (16)</tt> = [[Super Nintendo:Direct HDMA|Direct HDMA]] table for initial BG1SC data
** <tt>0083FF-008409 (11)</tt> = [[Super Nintendo:Direct HDMA|Direct HDMA]] table for initial BG12NBA data
** <tt>00840A-008419 (16)</tt> = [[Super Nintendo:Indirect HDMA|Indirect HDMA]] table for TM data
** <tt>00841A-008429 (16)</tt> = [[Super Nintendo:Indirect HDMA|Indirect HDMA]] table for CGADSUB data
** <tt>00842A-008436 (13)</tt> = [[Super Nintendo:Indirect HDMA|Indirect HDMA]] table for BG2HOFS data
** <tt>008437</tt> = MainNMIHandlerInitVars()
** <tt>0084AD</tt> = WriteOAMAndUpdateBG2ScrollData()
** <tt>0084EA</tt> = EnableInterrupts()
** <tt>0084F4</tt> = DisableInterruptsAndStopDMA()
** <tt>00850B</tt> = CopyPlayerButtonsHeld()
** <tt>00853D</tt> = MainNMIHandler()
** <tt>0086DD</tt> = ValidatePadData(byte padIndex<X>)
** <tt>00870D</tt> = CopyPlayerButtonsHeldSleep_L(byte numFrameToSleep<A>)
** <tt>008711</tt> = CopyPlayerButtonsHeldSleep_S(byte numFrameToSleep<A>)
** <tt>00873A</tt> = Obj:SetOAM?_S()
** <tt>00881F-00886E (80)</tt> = Pointers used by Obj:SetOAM?_S()
** <tt>0088DA-0089CE (244)</tt> = Data used by Obj:SetOAM?_S()
** <tt>0089CF</tt> = ShortSwitch(byte caseIndex<$0C35>)
*** data following the JSR are short pointers to functions
** <tt>0089E9</tt> = LongSwitch(byte caseIndex<$0C35>)
*** data following the JSR are long pointers to functions
** <tt>008A15</tt> = SPC:ClearLastCommandSent()
** <tt>008A19</tt> = SPC:SendCommand$F2()
** <tt>008A2F</tt> = SPC:SendCommand?()
** <tt>008A67-008B00 (154)</tt> = Offset of the character sprite's first tile in the movement sprite graphics (77 words)
** <tt>008B01-008B08 (8)</tt> = VRAM addresses for the character sprite graphics
** <tt>008B09</tt> = Obj:SetOAM?_L()
** <tt>008B0D-008B2C (32)</tt> = OAM offsets?
** <tt>008B2D-008B34 (8)</tt> = Member:SpriteFirstTile (words)
** <tt>008B35-008B4A (22)</tt> = Byte [[Crystal Beans From Dungeon Explorer:Char Stat List|char stat list]] for Member:SpritePalettes?
** <tt>008B4B-008B5A (16)</tt> = Unknown data
** <tt>008B5B-008BA4 (74)</tt> = Some struct list terminated by 0xFFFF related to maps
** <tt>008BA5</tt> = Map:ShowVisibleObjs_L()
** <tt>008BA9</tt> = Dlg:GetGameFlag_L()
** <tt>008C0F-008C24 (22)</tt> = Byte [[Crystal Beans From Dungeon Explorer:Char Stat List|char stat list]] for CharInfoArea:CharNameTileLine
** <tt>008C36-008C5D (40)</tt> = CharInfoArea:?OrgX[8][5] (indexed by [NumPlayers][MemberIndex])
** <tt>008C5E-008C67 (10)</tt> = CharInfoArea:LivesIconXPositions[10]
** <tt>008C68-008C71 (10)</tt> = CharInfoArea:MainWindowPos[5] (table of pointers to [[Crystal Beans From Dungeon Explorer:PlayerWindowPos|PlayerWindowPos]] struct list
** <tt>008C72-008C76 (5)</tt> = [[Crystal Beans From Dungeon Explorer:PlayerWindowPos|PlayerWindowPos]] struct list for 1 player primary info window
** <tt>008C77-008C7E (8)</tt> = [[Crystal Beans From Dungeon Explorer:PlayerWindowPos|PlayerWindowPos]] struct list for 2 players primary and secondary info windows
** <tt>008C7F-008C89 (11)</tt> = [[Crystal Beans From Dungeon Explorer:PlayerWindowPos|PlayerWindowPos]] struct list for 3 players primary and secondary info windows
** <tt>008C8A-008C97 (14)</tt> = [[Crystal Beans From Dungeon Explorer:PlayerWindowPos|PlayerWindowPos]] struct list for 4? players primary and secondary info windows
** <tt>008C98-008CA8 (17)</tt> = [[Crystal Beans From Dungeon Explorer:PlayerWindowPos|PlayerWindowPos]] struct list for 5? players primary and secondary info windows
** <tt>008CA9-008CAD (5)</tt> = [[Crystal Beans From Dungeon Explorer:PlayerWindowPos|PlayerWindowPos]] struct list for 1 player secondary info window
** <tt>008CAE-008CC6 (25)</tt> = Tile numbers composing the empty info window
** <tt>008CE0-008CE9 (10)</tt> = CharInfoArea:SecondaryWindowPos[5] (table of pointers to [[Crystal Beans From Dungeon Explorer:PlayerWindowPos|PlayerWindowPos]] struct list
** <tt>008CEF-008CF8 (10)</tt> = Players:InfoWindowStartCol[5] (table of pointers to byte arrays)
** <tt>008D08-008D09 (2)</tt> = PowersOfTen[2] (used to draw numbers in the info windows)
** <tt>008D0A-008D10 (7)</tt> = CharInfoArea:LevelWindowStringIndices[7]
** <tt>008D11-008D29 (25)</tt> = CharInfoArea:SecondaryWindowOrgX[5][5] (indexed by [NumPlayers][MemberIndex])
** <tt>008D2A-008D42 (25)</tt> = CharInfoArea:MainWindowOrgX[5][5] (indexed by [NumPlayers][MemberIndex])
** <tt>008D43-008D4B (8)</tt> = CharInfoArea:StatBarChars[8]
** <tt>008D54-008D91 (62)</tt> = CharInfoArea:Strings[31] (table of pointers to [[Crystal Beans From Dungeon Explorer:CharInfoArea Strings|CharInfoArea:Strings]]
** <tt>008D92-008E93 (258)</tt> = [[Crystal Beans From Dungeon Explorer:CharInfoArea Strings|CharInfoArea:Strings]]
** <tt>008E94-008E98 ()</tt> = CharInfoArea:StartMenuWindowNormalStringIndices[5]
** <tt>008E99-008E9D ()</tt> = CharInfoArea:StartMenuWindowSelectedStringIndices[5]
** <tt>008E9E-008EA0 ()</tt> = CharInfoArea:MenuWindowNormalStringIndices[3]
** <tt>008EA1-008EA3 ()</tt> = CharInfoArea:MenuWindowSelectedStringIndices[3]
** <tt>0094D9</tt> = UpdateJoypads()
** <tt>0095A1</tt> = ConnectCheck()
** <tt>009668</tt> = PringObjDlg?(byte btnsToAccept<A>, byte secIndex<$E3>, byte strIndex<$E2>)
** <tt>0096CE</tt> = ClearPlayerButtonPresses_S()
** <tt>0096D3</tt> = Dlg:GetCurrentPlayer_S()
** <tt>0096D9</tt> = Dlg:PutString_S?(byte secIndex<$E3>, byte strIndex<$E2>)
** <tt>0096DE</tt> = Dlg:ExecPrintHandler_S()
** <tt>0096E3</tt> = Dlg:AskYesNo_S()
** <tt>0096E8</tt> = Dlg:AskNumPlayer_S()
** <tt>0096ED</tt> = Dlg:PrepPrint_S(byte secIndex<$E3>, byte strIndex<$E2>)
** <tt>0096F2</tt> = Dlg:Init/ClearWindow_S?()
** <tt>0096F7</tt> = Dlg:GetNPCGameFlag_S()
** <tt>00970C</tt> = Dlg:LoadStrPtr_S()
** <tt>009716</tt> = Dlg:OutputCharLevel_S()
** <tt>00971B</tt> = Level:HandleSpecialActionRoom_S?()
** <tt>009725</tt> = CallSpecialRoomHandler()
** <tt>00972F-009738 (10)</tt> = Dlg:Digits (bytes, used to print numbers)
** <tt>009739-00973C (4)</tt> = Dlg:TaChi (words, used with table code <CMHP>)
** <tt>009740-009781 (66)</tt> = [[Crystal Beans From Dungeon Explorer:CharNamesStrPtr|Character names string pointer structs]]
** <tt>009782-0097CD (76)</tt> = Character names
** <tt>0097E6</tt> = Dlg:Code22CallSubcodeHandler()
** <tt>0097ED-009852 (102)</tt> = Function pointers to dialog code 22 subcode handlers
** <tt>009853</tt> = Dlg:Code22SubcodeEOS()
** <tt>00985A</tt> = Dlg:OutputCharLevel_L()
** <tt>009861-009862 (2)</tt> = Pointer to Dlg:OutputCharLevel_S (used Dlg:OutputCharLevel_L)
** <tt>009863-009864 (2)</tt> = Dlg:YesNoWndStrPos
** <tt>009869-00986B (3)</tt> = Pointer and length of Yes/No question string
** <tt>00986C-00987D (18)</tt> = Yes/No question string
** <tt>009884-009886 (3)</tt> = Pointer and length of number of players question string
** <tt>009887-00989E (24)</tt> = Number of players question string
** <tt>0098A2-0098A9 (8)</tt> = ByteBitMask[8]
** <tt>0098AA</tt> = Dlg:Init/ClearWindow_L()
** <tt>009946-00994F (10)</tt> = Dlg:PowersOf10 (used to display level number)
** <tt>00996A-009979 (16)</tt> = Table of function pointers to special room handlers (words)
** <tt>009990-009997 (8)</tt> = ByteBitMask[8]
** <tt>009D7A</tt> = ZeroPlayerStats(byte playerNum<Y>)
** <tt>009EBE</tt> = Obj:Clear_S(byte objOfs<X>)
** <tt>009F13</tt> = byte <Y>, bool failed<c> FindFreeObjSlotInSlice?(byte sliceIndex<A>)
** <tt>009F2F-009F74 (70)</tt> = Obj:StartObjIndex/EndObjIndex[35] ([[Crystal Beans From Dungeon Explorer:Stat Pair|stat pairs]], slice definitions used in function above)
** <tt>009F75</tt> = byte <Y>, bool failed<c> FindFreeObjSlot?(byte startObjOfs<$DC>, byte endObjOfs<$DD>)


==Dialog data==
==Dialog data==

Revision as of 21:43, 10 January 2012

Chip tiny.png The following article is a ROM map for Crystal Beans from Dungeon Explorer.


Overview

This present the layout of the ROM. Data with unknown function is omitted. The start of asm code whose function is known is mentioned under the code block definition.

Core engine

  • 000000-007E2E (32302) = Core engine asm code
    • 000000 = IRQ handler
      • returns carry set if mouse is plugged
    • 000048 = BRK handler
    • 000060 = Party:PreInitMembers()
    • 000093 = Party:InitActiveMembers()
    • 0000B8 = Party:InitMembers()
    • 0000DC = ClearShadowRAM()
    • 000103 = CharInfoArea:InitTextTilemapVRAM()
    • 00011F = InitOAMData()
    • 0002BC = HandleMapObjectsEvents?()
    • 0002E9 = HandleEvents?()
    • 000551 = Map:ShowVisibleObjs_S(byte levelIndex<$68>, byte RoomIndex<$67>)
    • 000FB0 = HandleDemonGutsBossDlg?()
    • 001A6B = HandleItemPicked?(byte objOfs<X>)
    • 001A9A = CallPickedItemHandler(byte item<A>, byte objOfs<X>)
    • 001AAB = Obj:IntBoosterPicked()
      • This item was removed from finished game
    • 001AD2 = Obj:AtkBoosterPicked()
      • This item was removed from finished game
    • 001AF9 = Obj:BootsPicked(byte objOfs<X>)
    • 001B20 = Obj:StrBoosterPicked()
      • This item was removed from finished game
    • 001B47 = Obj:BigHeartPicked(byte objOfs<X>)
    • 001B5E = Obj:BeanPicked(byte objOfs<X>)
    • 001B8C = Obj:WhiteJarPicked(byte objOfs<X>)
    • 001BAC = Obj:BlackSkullPicked(byte objOfs<X>)
    • 001BCC = Obj:ScareEnemiesItemPicked()
      • This item was removed from finished game
    • 001BED = Obj:ConfuseEnemiesItemPicked()
      • This item was removed from finished game
    • 001C0E = Obj:MirrorPicked(byte objOfs<X>)
    • 001C28 = Obj:LittleHeartPicked(byte objOfs<X>)
    • 001C54 = Obj:CapePicked(byte objOfs<X>)
    • 001C80 = Obj:UnkEffectOnEnemiesItemPicked()
      • This item was removed from finished game
    • 001CBE = Obj:RemoveItemAndPlaySound(byte objOfx<X>)
    • 001CD8 = SetLevelFlag_S(byte bitIndex<A>, byte levelIndex<$68>)
    • 001D64 = WaitForPlayerToPickGem()
    • 001DD2 = LevelUpStat(byte statIndex<$DE>, byte memberIndex<$133A>)
    • 0021B3 = SetPalette(byte palIndex<X>)
    • 002692 = HandleThousandValleysBoss1Dlg?()
    • 002B0A = HandleThousandValleysBoss2Dlg?()
    • 0033A2 = HandleShoalTunnelBossDlg?()
    • 003A0D = HandleDaimonHiddenIslandBoss1Dlg?()
    • 0042EE = HandleDaimonHiddenIslandBoss3Dlg?()
    • 004D2A = HandleGarnetCastleBoss2DlgAfter?()
    • 005083 = HandleGarnetCastleBoss2DlgBefore?()
    • 00542C = HandleBloodstoneCastleBoss2DlgAfter?()
    • 005776 = HandleBloodstoneCastleBoss2DlgBefore?()
    • 007659 = Dlg:Code22-Subcode03Handler()
    • 0076BF = SetLevelUpRoom()
    • 007722 = Dlg:Code22-Subcode04Handler()
    • 007735 = Dlg:Code22-Subcode05Handler()
    • 007761 = Dlg:Code22-Subcode06Handler()
    • 0077D5 = ThousandValleysGasMaskCheck()
    • 0077F4 = Dlg:Code22-Subcode08Handler()
    • 007859 = Dlg:Code22-Subcode09Handler()
    • 007867 = FirstDialogWithTheKing()
    • 007885 = LabyrinthMoonlightLampCheck()
    • 0078D8 = Dlg:Code22-Subcode0BHandler()
    • 0078E9 = Dlg:Code22-Subcode0DHandler()
    • 007905 = Dlg:Code22-Subcode11Handler()
    • 00790F = Dlg:Code22-Subcode12Handler()
      • Remove 5 black skulls from current player or change string if he doesn't have enough
    • 007935 = Dlg:Code22-Subcode13Handler()
    • 007968 = HandleThiefJoiningRoomDlg()
    • 007987 = HandleRobotBrainRoomDlg()
    • 0079A9 = Dlg:Code22-Subcode19Handler()
    • 0079EA = WorldMap:SelectPlace()
    • 007B97 = Dlg:LoadChosenPlaceNamePtr()
    • 007B9F = Dlg:LoadCurPlaceNamePtr()
    • 007BF5 = byte <X> WorldMap:HandleChoosePlaceInput()
  • 008000- () = Core engine asm code and data
    • 008000 = ABORT handler
    • 008375 = CharInfoArea:SetFrame()
    • 0083CC-0083E5 (26) = Direct HDMA table for initial BG1HOFS data
    • 0083E6-0083EE (9) = Direct HDMA table for initial BGMODE data
    • 0083EF-0083FE (16) = Direct HDMA table for initial BG1SC data
    • 0083FF-008409 (11) = Direct HDMA table for initial BG12NBA data
    • 00840A-008419 (16) = Indirect HDMA table for TM data
    • 00841A-008429 (16) = Indirect HDMA table for CGADSUB data
    • 00842A-008436 (13) = Indirect HDMA table for BG2HOFS data
    • 008437 = MainNMIHandlerInitVars()
    • 0084AD = WriteOAMAndUpdateBG2ScrollData()
    • 0084EA = EnableInterrupts()
    • 0084F4 = DisableInterruptsAndStopDMA()
    • 00850B = CopyPlayerButtonsHeld()
    • 00853D = MainNMIHandler()
    • 0086DD = ValidatePadData(byte padIndex<X>)
    • 00870D = CopyPlayerButtonsHeldSleep_L(byte numFrameToSleep<A>)
    • 008711 = CopyPlayerButtonsHeldSleep_S(byte numFrameToSleep<A>)
    • 00873A = Obj:SetOAM?_S()
    • 00881F-00886E (80) = Pointers used by Obj:SetOAM?_S()
    • 0088DA-0089CE (244) = Data used by Obj:SetOAM?_S()
    • 0089CF = ShortSwitch(byte caseIndex<$0C35>)
      • data following the JSR are short pointers to functions
    • 0089E9 = LongSwitch(byte caseIndex<$0C35>)
      • data following the JSR are long pointers to functions
    • 008A15 = SPC:ClearLastCommandSent()
    • 008A19 = SPC:SendCommand$F2()
    • 008A2F = SPC:SendCommand?()
    • 008A67-008B00 (154) = Offset of the character sprite's first tile in the movement sprite graphics (77 words)
    • 008B01-008B08 (8) = VRAM addresses for the character sprite graphics
    • 008B09 = Obj:SetOAM?_L()
    • 008B0D-008B2C (32) = OAM offsets?
    • 008B2D-008B34 (8) = Member:SpriteFirstTile (words)
    • 008B35-008B4A (22) = Byte char stat list for Member:SpritePalettes?
    • 008B4B-008B5A (16) = Unknown data
    • 008B5B-008BA4 (74) = Some struct list terminated by 0xFFFF related to maps
    • 008BA5 = Map:ShowVisibleObjs_L()
    • 008BA9 = Dlg:GetGameFlag_L()
    • 008C0F-008C24 (22) = Byte char stat list for CharInfoArea:CharNameTileLine
    • 008C36-008C5D (40) = CharInfoArea:?OrgX[8][5] (indexed by [NumPlayers][MemberIndex])
    • 008C5E-008C67 (10) = CharInfoArea:LivesIconXPositions[10]
    • 008C68-008C71 (10) = CharInfoArea:MainWindowPos[5] (table of pointers to PlayerWindowPos struct list
    • 008C72-008C76 (5) = PlayerWindowPos struct list for 1 player primary info window
    • 008C77-008C7E (8) = PlayerWindowPos struct list for 2 players primary and secondary info windows
    • 008C7F-008C89 (11) = PlayerWindowPos struct list for 3 players primary and secondary info windows
    • 008C8A-008C97 (14) = PlayerWindowPos struct list for 4? players primary and secondary info windows
    • 008C98-008CA8 (17) = PlayerWindowPos struct list for 5? players primary and secondary info windows
    • 008CA9-008CAD (5) = PlayerWindowPos struct list for 1 player secondary info window
    • 008CAE-008CC6 (25) = Tile numbers composing the empty info window
    • 008CE0-008CE9 (10) = CharInfoArea:SecondaryWindowPos[5] (table of pointers to PlayerWindowPos struct list
    • 008CEF-008CF8 (10) = Players:InfoWindowStartCol[5] (table of pointers to byte arrays)
    • 008D08-008D09 (2) = PowersOfTen[2] (used to draw numbers in the info windows)
    • 008D0A-008D10 (7) = CharInfoArea:LevelWindowStringIndices[7]
    • 008D11-008D29 (25) = CharInfoArea:SecondaryWindowOrgX[5][5] (indexed by [NumPlayers][MemberIndex])
    • 008D2A-008D42 (25) = CharInfoArea:MainWindowOrgX[5][5] (indexed by [NumPlayers][MemberIndex])
    • 008D43-008D4B (8) = CharInfoArea:StatBarChars[8]
    • 008D54-008D91 (62) = CharInfoArea:Strings[31] (table of pointers to CharInfoArea:Strings
    • 008D92-008E93 (258) = CharInfoArea:Strings
    • 008E94-008E98 () = CharInfoArea:StartMenuWindowNormalStringIndices[5]
    • 008E99-008E9D () = CharInfoArea:StartMenuWindowSelectedStringIndices[5]
    • 008E9E-008EA0 () = CharInfoArea:MenuWindowNormalStringIndices[3]
    • 008EA1-008EA3 () = CharInfoArea:MenuWindowSelectedStringIndices[3]
    • 0094D9 = UpdateJoypads()
    • 0095A1 = ConnectCheck()
    • 009668 = PringObjDlg?(byte btnsToAccept<A>, byte secIndex<$E3>, byte strIndex<$E2>)
    • 0096CE = ClearPlayerButtonPresses_S()
    • 0096D3 = Dlg:GetCurrentPlayer_S()
    • 0096D9 = Dlg:PutString_S?(byte secIndex<$E3>, byte strIndex<$E2>)
    • 0096DE = Dlg:ExecPrintHandler_S()
    • 0096E3 = Dlg:AskYesNo_S()
    • 0096E8 = Dlg:AskNumPlayer_S()
    • 0096ED = Dlg:PrepPrint_S(byte secIndex<$E3>, byte strIndex<$E2>)
    • 0096F2 = Dlg:Init/ClearWindow_S?()
    • 0096F7 = Dlg:GetNPCGameFlag_S()
    • 00970C = Dlg:LoadStrPtr_S()
    • 009716 = Dlg:OutputCharLevel_S()
    • 00971B = Level:HandleSpecialActionRoom_S?()
    • 009725 = CallSpecialRoomHandler()
    • 00972F-009738 (10) = Dlg:Digits (bytes, used to print numbers)
    • 009739-00973C (4) = Dlg:TaChi (words, used with table code <CMHP>)
    • 009740-009781 (66) = Character names string pointer structs
    • 009782-0097CD (76) = Character names
    • 0097E6 = Dlg:Code22CallSubcodeHandler()
    • 0097ED-009852 (102) = Function pointers to dialog code 22 subcode handlers
    • 009853 = Dlg:Code22SubcodeEOS()
    • 00985A = Dlg:OutputCharLevel_L()
    • 009861-009862 (2) = Pointer to Dlg:OutputCharLevel_S (used Dlg:OutputCharLevel_L)
    • 009863-009864 (2) = Dlg:YesNoWndStrPos
    • 009869-00986B (3) = Pointer and length of Yes/No question string
    • 00986C-00987D (18) = Yes/No question string
    • 009884-009886 (3) = Pointer and length of number of players question string
    • 009887-00989E (24) = Number of players question string
    • 0098A2-0098A9 (8) = ByteBitMask[8]
    • 0098AA = Dlg:Init/ClearWindow_L()
    • 009946-00994F (10) = Dlg:PowersOf10 (used to display level number)
    • 00996A-009979 (16) = Table of function pointers to special room handlers (words)
    • 009990-009997 (8) = ByteBitMask[8]
    • 009D7A = ZeroPlayerStats(byte playerNum<Y>)
    • 009EBE = Obj:Clear_S(byte objOfs<X>)
    • 009F13 = byte <Y>, bool failed<c> FindFreeObjSlotInSlice?(byte sliceIndex<A>)
    • 009F2F-009F74 (70) = Obj:StartObjIndex/EndObjIndex[35] (stat pairs, slice definitions used in function above)
    • 009F75 = byte <Y>, bool failed<c> FindFreeObjSlot?(byte startObjOfs<$DC>, byte endObjOfs<$DD>)

Dialog data

  • 03E396-03E401 (108) = Dialog section pointer table (36 24-bits pointers)
  • 03E402-03E79D (924) = Dialog string pointer table (308 24-bits pointers)
  • 03E79E-04649A (31997) = Dialog strings
  • 04649B-04FFFA (39776) = Dialog font graphics (2 bpp planar aka GameBoy format)

Character movement sprite graphics

  • 050000-053FFF (16384) = Bard (4 bpp Snes format)
  • 054000-057FFF (16384) = Bowman (4 bpp Snes format)
  • 058000-05BFFF (16384) = Warrior (4 bpp Snes format)
  • 05C000-05FFFF (16384) = Kage (4 bpp Snes format)
  • 060000-053FFF (16384) = Robot (4 bpp Snes format)
  • 064000-057FFF (16384) = Wizard (4 bpp Snes format)
  • 068000-05BFFF (16384) = Monk (4 bpp Snes format)
  • 06C000-05FFFF (16384) = Dragon (4 bpp Snes format)
  • 070000-053FFF (16384) = Fighter (4 bpp Snes format)
  • 074000-057FFF (16384) = Priest (4 bpp Snes format)
  • 078000-05BFFF (16384) = Thief (4 bpp Snes format)
  • 07C000-05FFFF (16384) = Witch (4 bpp Snes format)

Music

  • 120000-12038E (911) = 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 next song chunk
  • 121802-121803 (2) = number of pointers in next pointer table
  • 121804-121837 (52) = song pattern order pointer table (26 16-bits pointers)
  • 121838-121C0C (981) = songs pattern order (list of pattern indices terminated by a $FF byte)
  • 121C0D-121C0E (2) = number of pointers in next pointer table
  • 121C0F-121CC6 (184) = Pattern pointer table (92 16-bits pointers)
  • 121CC7-12A08C (33734) = Patterns
  • 12A08D-12A0FF (115) = Unused/Padding
  • 12A100-12A4BF (960) = Instruments
  • 12A4C0-145FFD (113469) = BRR Samples
  • 145FFD-145FFF (3) = Unused/Padding

Cutscenes

  • 146000-147907 (6408) = Cutscene font graphics
  • 14B000-14B9B8 (2489) = Compressed graphics for weapons shadow
  • 14B9B9-14B9DC (36) = Compressed palette for weapons shadow
  • 14B9DD-14BDEB (1039) = Unknown compressed data (weapons shadow tilemap?)
  • 14BDEC-14CA10 (3109) = Compressed graphics for rain cloud
  • 14CA11-14CA2E (30) = Compressed palette for rain cloud, crystal shards and some unknown sprites
  • 14CA2F-14D0FF (1745) = Unknown compressed data (rain cloud tilemap?)
  • 14D100-14D239 (314) = Compressed graphics for crystal shards
  • 14D23A-14D77E (1349) = Unknown compressed data (crystal shards tilemap?)
  • 14D77F-14DA93 (789) = Compressed graphics for little beanstalk
  • 14DA94-14DAB6 (35) = Compressed palette for little beanstalk
  • 14DAB7-14DBB4 (254) = Unknown compressed data (little beanstalk tilemap?)
  • 14DBB5-14DC56 (162) = Compressed graphics for small crystals
  • 14DC57-14DCD7 (129) = Compressed palette for small crystals
  • 14DCD8-14E521 (2122) = Compressed graphics for other little beanstalk
  • 14E522-14E562 (65) = Compressed palette for other little beanstalk
  • 14E563-14E724 (450) = Unknown compressed data (other little beanstalk tilemap?)
  • 14E725-14E8CE (426) = Compressed graphics for small growing beanstalk
  • 14E8CF-14E8F1 (35) = Compressed palette for small growing beanstalk
  • 14E8F2-15146F (11134) = Compressed graphics for world map
  • 151470-151503 (148) = Compressed initial palette, also used for title screen and world map
  • 151504-15155C (89) = compressed additional palette for world map
  • 15155D-151A14 (1208) = Unknown Compressed data (world map tilemap?)
  • 151A15-1536DB (7367) = Compressed graphics for world map sprites
  • 1536DC-153759 (126) = Compressed palette for world map sprites
  • 15375A-156478 (11551) = Compressed graphics for monsters
  • 156479-1564C5 (77) = Compressed palette for monsters
  • 1564C6-156900 (1083) = Unknown compressed data (monsters tilemap?)
  • 156901-1585A6 (7334) = Compressed graphics for monster outlines
  • 1585A7-1585EC (70) = Compressed palette for monster outlines
  • 1585ED-1589DB (1007) = Unknown compressed data (monsters outlines tilemap?)
  • 1589DC-15AE21 (9286) = Compressed graphics for large beanstalk
  • 15AE22-15AE58 (55) = Compressed palette for large beanstalk
  • 15AE59-15B1D5 (893) = Unknown compressed data (large beanstalk tilemap?)
  • 15B1D6-15B555 (896) = Unknown compressed data (large beanstalk tilemap?)
  • 15B556-15EC94 (14143) = Compressed graphics for large growing beanstalk
  • 15EC95-15ECD0 (60) = Compressed palette for large growing beanstalk
  • 15ECD1-15F320 (1616) = Unknown compressed data (large growing beanstalk tilemap?)
  • 15F321-16026D (3917) = Compressed graphics for pedestal
  • 16026E-1602D5 (104) = Compressed palette for pedestal
  • 1602D6-160500 (555) = Unknown compressed data (pedestal tilemap?)
  • 160501-16119D (3229) = Compressed graphics for shining crystal
  • 16119E-1611C0 (35) = Compressed palette for shining crystal
  • 1611C1-162871 (5809) = Compressed graphics for castle
  • 162872-1628E8 (119) = Compressed palette for castle
  • 1628E9-162AF3 (523) = Unknown compressed data (throne room tilemap?)
  • 162AF4-162CD2 (479) = Unknown compressed data (bean room tilemap?)
  • 162CD3-163730 (2654) = Compressed graphics for boss room
  • 163731-1637BF (143) = Compressed palette for boss room
  • 1637C0-1638C9 (266) = Unknown compressed data (boss room tilemap?)
  • 1638CA-164C62 (5017) = Compressed graphics for characters
  • 164C63-164CEB (137) = Compressed palette for characters
  • 164CEC-164CFC (17) = Compressed additional palette for castle
  • 164CFD-1694F5 (18425) = Compressed graphics for title screen background
  • 1694F6-169548 (83) = Compressed additional palette for title screen background
  • 169549-169BB1 (1641) = Unknown compressed data (title screen background tilemap?)
  • 169BB2-16B4BC (6411) = Compressed graphics for title screen text
  • 16B4BD-16B52C (112) = Compressed palette for title screen text
  • 16B52D-16BA07 (1243) = Compressed graphics for title screen clouds
  • 16BA08-16BA12 (11) = Compressed palette for title screen clouds
  • 16BA13-16BECB (1209) = Unknown compressed data (title screen clouds tilemap?)
  • 16BECC-16D7D5 (6410) = Compressed graphics for castle sprites
  • 16D7D6-16D8A2 (205) = Compressed palette for castle sprites
  • 16D8A3-17001B (10105) = Compressed graphics for castle people sprites
  • 17001C-171A36 (6683) = Compressed graphics for town
  • 171A37-171ACE (152) = Compressed palette for town
  • 171ACF-171CF4 (550) = Unknown Compressed data (town tilemap?)
  • 171CF5-1728B7 (3011) = Compressed graphics for credit sprites
  • 1728B8-1728F0? (57?) = Compressed palette for credit sprites
  • 178000-179128 (4393) = Cutscene engine asm code (script related)
    • 178000 = ShowCutscene(byte cutsceneIndex<A>)
    • 178138-178141 (10) = Cutscene script pointer table (5 16-bits pointer)
    • 1781AE-1781CF (34) = Cutscene command function pointer table (17 16-bits pointer)
    • 1782C2 = SetSrcAddr()
    • 1782D2 = SetUncompressedLength()
    • 1782D9 = SetVRAMAddr()
    • 17855F = SetScrollRegs()
    • 1788F2 = SendToVram()
    • 178927 = CheckCutsceneInterruption()
    • 178961-178965 (5) = Cutscene interruption control bytes (1 if cutscene can be interrupted by pressing the START button, 0 otherwise)
    • 17899D = CutsceneNMIHandler()
    • 178A29 = UploadPalette()
    • 178A9B = UploadToVRAM()
    • 178CAC = SendToVRAM()
    • 178DBD = MemsetVRAM?()
    • 178DD3 = DecompToWRAM()
    • 178DFC = DecompToVRAM()
    • 178E26 = DecompToPaletteBuf()
    • 178F37 = SetOAMFromArray()
    • 179037 = LzssInitVars()
    • 1790CD = LzssGetNextByte()
    • 1790DC = byte<A> tLzssUncompressNextByte()
  • 179129-17B8FB (10196) = Cutscene sprite data struct lists
  • 17BDF3-17BE9F (173) = Script for title screen
  • 17BEA0-17C22F (912) = Script for introduction
  • 17C230-17C3D9 (426) = Script for beanstalk growing scene
  • 17C3DA-17C7D1 (1016) = Script for ending and credits
  • 17C7D2-17C7ED (28) = Script for mouse message
  • 17C7EE-17D3E3 (3062) = Cutscene engine asm code
    • 17C7EE = InitScreenRegs?()
    • 17C822-17C862 (65) = Cutscene screen registers initialization structs
    • 17C8BA = PlaySong()
    • 17C8CE = SetLogoScrollFlag()
    • 17C8D6 = SetOBSEL()
    • 17C8E9 = PrintScrollingString()
    • 17C95A = PutNormalString()
    • 17D02C = SetTextWindow()
  • 17D5E4-17D611 (46) = Cutscene string pointer table (23 16-bits pointers)
  • 17D616-17DFC3 (2477) = Cutscene strings
  • 17DFC4-17E488 (1221) = Cutscene engine asm code (string display related)
    • 17DFC4 = iPrintNormalString(word stringIndex<A>, word startRow<Y>)
    • 17E09D = PrepScrollingString()
    • 17E141 = PrintScrollingString()
    • 17E1F0 = UpdateBufIndex()
    • 17E200 = GetNextChar()
    • 17E22E = PutChar()
    • 17E2C7 = LoadTile()
    • 17E308 = GetTileMapIndex(word tileIndex<$38>)
    • 17E322 = UpdateTileMap()