Zelda: Majora's Mask

From en64 wiki
Jump to navigation Jump to search

Debug ROM

Misc Placement:
MM GC ->N64
A Zelda level viewer

OS Functions

(U)

0x80087b00,__osSetCause
0x80087b10,osSendMesg
0x80087e10,osStopThread
0x80087ed0,osRecvMesg
0x80088010,osSetIntMask
0x800880b0,osGetIntMask
0x80088350,__sinf/fsin/sinf
0x80088510,sins
0x80088840,__ull_rshift
0x8008886c,__ull_rem
0x800888a8,__ull_div
0x800888e4,__ll_lshift
0x80088910,__ll_rem
0x8008894c,__ll_div
0x800889a8,__ll_mul
0x800889d8,__ull_divremi
0x80088a38,__ll_mod
0x80088ad4,__ll_rshift
0x80089430,__osDequeueThread
0x80089630,bzero/_bzero/blkclr/_blkclr
0x80089e40,osCreateThread
0x8008a540,osVirtualToPhysical
0x8008a5c0,__osGetSR
0x8008a5d0,__osSetSR
0x8008a5e0,osWritebackDCache
0x8008aa50,guPerspectiveF
0x8008ac80,guPerspective
0x8008af30,osGetThreadId
0x8008af50,osSpTaskYield
0x8008b6b0,__osGetConfig
0x8008b6c0,__osSetConfig
0x8008be70,osStopTimer
0x8008bf60,__osProbeTLB
0x8008d2c0,osGetCount
0x8008d700,sqrtf
0x8008fab0,osJamMesg
0x8008fc00,osSetThreadPri
0x8008fce0,osGetThreadPri
0x80090300,bcmp/_bcmp
0x80090420,osGetTime
0x80090680,__osSetGlobalIntMask
0x80091280,__osSetCompare
0x80091290,__osGetCompare
0x800912a0,osDpGetStatus
0x800912b0,osDpSetStatus
0x800912c0,bcopy/_bcopy
0x800915d0,__osResetGlobalIntMask
0x80091f40,__cosf/fcos/cosf
0x80092260,coss
0x80092290,osSetTime
0x80092ce0,__osSetFpcCsr
0x80092cf0,__osGetFpcCsr
0x80093ba0,osAiGetLength
0x80093c00,osMapTLBRdb
0x80093c60,osYieldThread
0x80093d90,__osGetCause
0x80094f80,_Litob
0x80095270,__osSpGetStatus
0x80095280,__osSpSetStatus
0x800955c0,osWritebackDCacheAll
0x800957b0,osStartThread
0x80095a60,__d_to_ll
0x80095a7c,__f_to_ll
0x80095a98,__d_to_ull
0x80095b38,__f_to_ull
0x80095bd4,__ll_to_d
0x80095bec,__ll_to_f
0x80095c04,__ull_to_d
0x80095c38,__ull_to_f
0x80097540,osViModeNtscHpf1
0x80097eb0,osViModeNtscHpn1
0x80097fc0,osViModeNtscLan1
0x80098010,osViModeMpalLan1
0x800991a0,__osRcpImTable
0x80099450,__libm_qnan_f

(J)

0x80088aa0,__osSetCause
0x80088ab0,osSendMesg
0x80088db0,osStopThread
0x80088e70,osRecvMesg
0x80088fb0,osSetIntMask
0x80089050,osGetIntMask
0x800892f0,__sinf/fsin/sinf
0x800894b0,sins
0x800897e0,__ull_rshift
0x8008980c,__ull_rem
0x80089848,__ull_div
0x80089884,__ll_lshift
0x800898b0,__ll_rem
0x800898ec,__ll_div
0x80089948,__ll_mul
0x80089978,__ull_divremi
0x800899d8,__ll_mod
0x80089a74,__ll_rshift
0x8008a3d0,__osDequeueThread
0x8008a5d0,bzero/_bzero/blkclr/_blkclr
0x8008ade0,osCreateThread
0x8008b4e0,osVirtualToPhysical
0x8008b560,__osGetSR
0x8008b570,__osSetSR
0x8008b580,osWritebackDCache
0x8008b9f0,guPerspectiveF
0x8008bc20,guPerspective
0x8008bed0,osGetThreadId
0x8008bef0,osSpTaskYield
0x8008c650,__osGetConfig
0x8008c660,__osSetConfig
0x8008ce10,osStopTimer
0x8008cf00,__osProbeTLB
0x800901e0,osCreateMesgQueue
0x80090210,osInvalICache
0x80090290,osInvalDCache
0x80090a50,osJamMesg
0x80090ba0,osSetThreadPri
0x80090c80,osGetThreadPri
0x800912a0,bcmp/_bcmp
0x800913c0,osGetTime
0x80091620,__osSetGlobalIntMask
0x80092220,__osSetCompare
0x80092230,__osGetCompare
0x80092240,osDpGetStatus
0x80092250,osDpSetStatus
0x80092260,bcopy/_bcopy
0x80092570,__osResetGlobalIntMask
0x80092ee0,__cosf/fcos/cosf
0x80093200,coss
0x80093230,osSetTime
0x80093c80,__osSetFpcCsr
0x80093c90,__osGetFpcCsr
0x80094b60,osAiGetLength
0x80094bc0,osMapTLBRdb
0x80094c20,osYieldThread
0x80094d50,__osGetCause
0x80095f40,_Litob
0x80096230,__osSpGetStatus
0x80096240,__osSpSetStatus
0x80096580,osWritebackDCacheAll
0x80096770,osStartThread
0x80096a20,__d_to_ll
0x80096a3c,__f_to_ll
0x80096a58,__d_to_ull
0x80096af8,__f_to_ull
0x80096b94,__ll_to_d
0x80096bac,__ll_to_f
0x80096bc4,__ull_to_d
0x80096bf8,__ull_to_f
0x80098570,osViModeNtscHpf1
0x80098ee0,osViModeNtscHpn1
0x80098ff0,osViModeNtscLan1
0x80099040,osViModeMpalLan1
0x8009adb0,__osRcpImTable
0x8009b060,__libm_qnan_f

Entrance Table

0x00C5BC60 in a decompressed MM (U) ROM
Format
xx000000 yyyyyyyy zzzzzzzz
xx = Number of Entrances
yy = RAM Offset
zz = Scene Name RAM Offset


To get the data for an individual entrance you would go to RAM Offset + (Entrance Number * 4), take the address written there and add (Variable * 4)
The data here seems to be in the same format as OoT
aabbccdd
aa = Scene Number (Signed Byte)
bb = Entrance Number
cc = Variable
dd = Fade

Exit Values

xxyz
xx = Exit number - Divide by two to get its entry in the exit table (see below) xy = Entrance Number
z = Variable?


Examples: D800 will take you to exit 0x6C (South Clock Town) at entrance 0x00 1500 will take you to exit 0x0A (Grottos) at entrance 0x10 4650 will take you to exit 0x23 (Fairy Fountain) at entrance 0x05

Exit Table list

Exit    # of Entrances    RAM Offset    Scene Name RAM Offset    Internal Name           Name
0x00    0x03              801C43BC      801DE020                 Z2_ZONCHONOIE           The Mayor's Residence
0x01    0x01              801C43CC      801DE030                 Z2_LAST_BS              Majora Boss Room
0x02    0x01              801C43D4      801DE03C                 Z2_WITCH_SHOP           Magic Hags' Potion Shop
0x03    0x02              801C43E0      801DE04C                 Z2_OMOYA                Ranch Barn
0x04    0x01              801C43EC      801DE058                 Z2_BOWLING              Honey & Darling's Shop
0x05    0x02              801C43F8      801DE064                 Z2_HAKASHITA            Beneath the Graveyard
0x06    0x0B              801C442C      801DE074                 Z2_20SICHITAI2          Southern Swamp (unpoisoned)
0x07    0x04              801C4468      801DE084                 Z2_AYASHIISHOP          Curiosity Shop
0x08    0x00              00000000      00000000                 null
0x09    0x00              00000000      00000000                 null
0x0A    0x11              801C54F4      801DE094                 KAKUSIANA               Grottos
0x0B    0x00              00000000      00000000                 null
0x0C    0x00              00000000      00000000                 null
0x0D    0x00              00000000      00000000                 null
0x0E    0x0A              801C56F8      801DE0A0                 SPOT00                  Various Cutscenes
0x0F    0x00              00000000      00000000                 null
0x10    0x10              801C457C      801DE0A8                 Z2_IKANA                Ikana Canyon
0x11    0x0F              801C4604      801DE0B4                 Z2_KAIZOKU              Pirate's Fortress
0x12    0x01              801C4654      801DE0C0                 Z2_MILK_BAR             Milk Bar
0x13    0x02              801C4660      801DE0CC                 Z2_INISIE_N             Stone Tower Temple
0x14    0x02              801C4670      801DE0D8                 Z2_TAKARAYA             Treasure Chest Shop
0x15    0x03              801C4684      801DE0E4                 Z2_INISIE_R             Stone Tower Temple (upside down)
0x16    0x03              801C46B8      801DE0F0                 Z2_OKUJOU               Top of Clock Tower
0x17    0x05              801C46DC      801DE0FC                 Z2_OPENINGDAN           Meeting Tatl
0x18    0x03              801C46FC      801DE10C                 Z2_MITURIN              Woodfall Temple
0x19    0x02              801C4718      801DE118                 Z2_13HUBUKINOMITI       Road to Mountain Village
0x1A    0x07              801C473C      801DE12C                 Z2_CASTLE               Ancient Castle of Ikana
0x1B    0x02              801C4760      801DE138                 Z2_DEKUTES              Deku Mini-Game
0x1C    0x01              801C476C      801DE144                 Z2_MITURIN_BS           Woodfall Temple Boss
0x1D    0x02              801C4778      801DE154                 Z2_SYATEKI_MIZU         Town Shooting Gallery
0x1E    0x02              801C4788      801DE164                 Z2_HAKUGIN              Snowhead Temple
0x1F    0x07              801C47AC      801DE170                 Z2_ROMANYMAE            Milk Road
0x20    0x10              801C4808      801DE180                 Z2_PIRATE               Inside Pirate's Fortress
0x21    0x01              801C484C      801DE18C                 Z2_SYATEKI_MORI         Swamp Shooting Gallery
0x22    0x02              801C4858      801DE19C                 Z2_SINKAI               Pinnacle Rock
0x23    0x0A              801C488C      801DE1A8                 Z2_YOUSEI_IZUMI         Fairy Fountain
0x24    0x01              801C48B8      801DE1B8                 Z2_KINSTA1              Swamp Spider House
0x25    0x01              801C48C0      801DE1C4                 Z2_KINDAN2              Oceanside Spider House
0x26    0x03              801C48D0      801DE1D0                 Z2_TENMON_DAI           Clock Town Sewer / Astral Observatory
0x27    0x01              801C48E0      801DE1E0                 Z2_LAST_DEKU            Deku Moon Dungeon
0x28    0x0B              801C4910      801DE1F0                 Z2_22DEKUCITY           Deku Palace
0x29    0x01              801C4940      801DE200                 Z2_KAJIYA               Mountain Smithy
0x2A    0x0F              801C4AB8      801DE20C                 Z2_00KEIKOKU            Termina Field
0x2B    0x01              801C4AF8      801DE21C                 Z2_POSTHOUSE            Post Office
0x2C    0x01              801C4B00      801DE22C                 Z2_LABO                 Marine Research Lab
0x2D    0x02              801C4B0C      801DE234                 Z2_DANPEI2TEST          Beneath the Graveyard / Dampe's house
0x2E    0x00              00000000      00000000                 null
0x2F    0x04              801C4B34      801DE244                 Z2_16GORON_HOUSE        Goron Shrine
0x30    0x09              801C4B6C      801DE258                 Z2_33ZORACITY           Zora Hall
0x31    0x02              801C4B98      801DE268                 Z2_8ITEMSHOP            Trading Post
0x32    0x0C              801C4BE8      801DE278                 Z2_F01                  Romani Ranch
0x33	0x05              801C4C2C      801DE280                 Z2_INISIE_BS            Stone Tower Temple Boss
0x34    0x0E              801C4CB4      801DE290                 Z2_30GYOSON             Great Bay Coast
0x35    0x0A              801C4D3C      801DE29C                 Z2_31MISAKI             Great Bay Coast 2
0x36    0x01              801C4D68      801DE2A8                 Z2_TAKARAKUJI           Lottery House
0x37    0x00              00000000      00000000                 null
0x38    0x07              801C4D88      801DE2B8                 Z2_TORIDE               Outside Pirate's Fortress
0x39    0x01              801C4DA8      801DE2C4                 Z2_FISHERMAN            Fisherman's Hut
0x3A    0x01              801C4DB0      801DE2D4                 Z2_GORONSHOP            Goron Shop
0x3B    0x04              801C4DC8      801DE2E4                 Z2_DEKU_KING            Deku King's Chamber
0x3C    0x01              801C4DDC      801DE2F4                 Z2_LAST_GORON           Goron Moon Dungeon
0x3D    0x03              801C4DEC      801DE304                 Z2_24KEMONOMITI         Road to Southern Swamp
0x3E    0x02              801C4E00      801DE314                 Z2_F01_B                Doggy Racetrack
0x3F    0x02              801C4E14      801DE320                 Z2_F01C                 Cucco Shack
0x40    0x06              801C4E38      801DE328                 Z2_BOTI                 Ikana Graveyard
0x41    0x01              801C4E54      801DE330                 Z2_HAKUGIN_BS           Snowhead Temple Boss
0x42    0x0B              801C4E84      801DE340                 Z2_20SICHITAI           Southern Swamp (poisoned)
0x43    0x05              801C4EEC      801DE350                 Z2_21MITURINMAE         Woodfall
0x44    0x02              801C4F08      801DE360                 Z2_LAST_ZORA            Zora Moon Dungeon
0x45    0x05              801C4F28      801DE370                 Z2_11GORONNOSATO2       Goron Village (unfrozen)
0x46    0x03              801C4F48      801DE384                 Z2_SEA                  Great Bay Temple
0x47    0x04              801C4F64      801DE38C                 Z2_35TAKI               Waterfall Rapids
0x48    0x02              801C4F7C      801DE398                 Z2_REDEAD               Beneath the Well
0x49    0x07              801C4FA0      801DE3A4                 Z2_BANDROOM             Zora Band Room
0x4A    0x05              801C4FD0      801DE3B0                 Z2_11GORONNOSATO        Goron Village (frozen)
0x4B    0x02              801C4FEC      801DE3C4                 Z2_GORON_HAKA           Goron Graveyard
0x4C    0x01              801C4FF8      801DE3D4                 Z2_SECOM                Sakon's Hideout
0x4D    0x09              801C5020      801DE3E0                 Z2_10YUKIYAMANOMURA     Mountain Village (frozen)
0x4E    0x03              801C5050      801DE3F4                 Z2_TOUGITES             Ghost Hut
0x4F    0x03              801C5068      801DE400                 Z2_DANPEI               Deku Shrine
0x50    0x03              801C5080      801DE40C                 Z2_IKANAMAE             Road to Ikana
0x51    0x01              801C50A4      801DE418                 Z2_DOUJOU               Swordsman's School
0x52    0x01              801C5090      801DE424                 Z2_MUSICHOUSE           Music Box House
0x53    0x01              801C509C      801DE434                 Z2_IKNINSIDE            Ikana Castle Boss
0x54    0x03              801C50B4      801DE444                 Z2_MAP_SHOP             Tourist Information
0x55    0x04              801C50D0      801DE450                 Z2_F40                  Stone Tower
0x56    0x02              801C50E8      801DE458                 Z2_F41                  Stone Tower (upside down)
0x57    0x09              801C5118      801DE460                 Z2_10YUKIYAMANOMURA2    Mountain Village (unfrozen)
0x58    0x02              801C514C      801DE478                 Z2_14YUKIDAMANOMITI     Road to Snowhead
0x59    0x04              801C5174      801DE48C                 Z2_12HAKUGINMAE         Snowhead
0x5A    0x03              801C5190      801DE49C                 Z2_17SETUGEN            Road to Goron Village (frozen)
0x5B    0x03              801C51A8      801DE4AC                 Z2_17SETUGEN2           Road To Goron Village (unfrozen)
0x5C    0x02              801C51BC      801DE4BC                 Z2_SEA_BS               Great Bay Temple Boss
0x5D    0x01              801C51C8      801DE4C8                 Z2_RANDOM               Secret Shrine
0x5E    0x06              801C51E8      801DE4D4                 Z2_YADOYA               Clock Town Inn
0x5F    0x01              801C5204      801DE4E0                 Z2_KONPEKI_ENT          Great Bay Temple Intro
0x60    0x07              801C5224      801DE4F0                 Z2_INSIDETOWER          Inside Clock Tower
0x61    0x01              801C5244      801DE500                 Z2_26SARUNOMORI         Woods of Mystery
0x62    0x03              801C5278      801DE510                 Z2_LOST_WOODS           Lost Woods Intro (falling off Epona)
0x63    0x01              801C5288      801DE520                 Z2_LAST_LINK            Link Moon Dungeon
0x64    0x01              801C5290      801DE530                 Z2_SOUGEN               Inside the Moon
0x65    0x02              801C529C      801DE53C                 Z2_BOMYA                Bomb Shop
0x66    0x01              801C52D0      801DE548                 Z2_KYOJINNOMA           Giant Cutscenes
0x67    0x06              801C52EC      801DE558                 Z2_KOEPONARACE          Gorman Track
0x68    0x03              801C531C      801DE568                 Z2_GORONRACE            Goron Racetrack
0x69    0x0D              801C5364      801DE578                 Z2_TOWN                 East Clock Town
0x6A    0x0A              801C53C4      801DE580                 Z2_ICHIBA               West Clock Town
0x6B    0x08              801C5410      801DE58C                 Z2_BACKTOWN             North Clock Town
0x6C    0x0B              801C546C      801DE598                 Z2_CLOCKTOWER           South Clock Town
0x6D    0x03              801C54A4      801DE5A8                 Z2_ALLEY                Laundry Pool