1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-11-04 22:29:02 -08:00

find basic addresses for all ROMs

This commit is contained in:
Connor Olding 2015-03-23 20:41:46 -07:00
parent abc4555912
commit 77192b3c71
15 changed files with 119 additions and 4 deletions

1
Lua/addrs/O EU10.lua Normal file
View file

@ -0,0 +1 @@
return {}

1
Lua/addrs/O EU11.lua Normal file
View file

@ -0,0 +1 @@
return {}

1
Lua/addrs/O EUDB MQ.lua Normal file
View file

@ -0,0 +1 @@
return {}

1
Lua/addrs/O EUGC MQ.lua Normal file
View file

@ -0,0 +1 @@
return {}

1
Lua/addrs/O EUGC.lua Normal file
View file

@ -0,0 +1 @@
return {}

1
Lua/addrs/O JP10.lua Normal file
View file

@ -0,0 +1 @@
-- dummy file; please edit O US10.lua instead

1
Lua/addrs/O JP11.lua Normal file
View file

@ -0,0 +1 @@
-- dummy file; please edit O US11.lua instead

1
Lua/addrs/O JP12.lua Normal file
View file

@ -0,0 +1 @@
-- dummy file; please edit O US12.lua instead

1
Lua/addrs/O JPGC MQ.lua Normal file
View file

@ -0,0 +1 @@
return {}

1
Lua/addrs/O JPGC.lua Normal file
View file

@ -0,0 +1 @@
return {}

1
Lua/addrs/O US11.lua Normal file
View file

@ -0,0 +1 @@
return {}

1
Lua/addrs/O US12.lua Normal file
View file

@ -0,0 +1 @@
return {}

1
Lua/addrs/O USGC MQ.lua Normal file
View file

@ -0,0 +1 @@
return {}

1
Lua/addrs/O USGC.lua Normal file
View file

@ -0,0 +1 @@
return {}

View file

@ -17,8 +17,22 @@ versions = { -- sha1 hashes of .z64s
-- Ocarina of Time
["AD69C91157F6705E8AB06C79FE08AAD47BB57BA7"] = "O US10",
-- this is supposedly the same ROM, but i don't have it offhand to verify
["79A4F053D34018E59279E6D4B83C7DACCD985C87"] = "O US10",
["D3ECB253776CD847A5AA63D859D8C89A2F37B364"] = "O US11",
["41B3BDC48D98C48529219919015A1AF22F5057C2"] = "O US12",
["B82710BA2BD3B4C6EE8AA1A7E9ACF787DFC72E9B"] = "O USGC",
["328A1F1BEBA30CE5E178F031662019EB32C5F3B5"] = "O EU10",
["CFBB98D392E4A9D39DA8285D10CBEF3974C2F012"] = "O EU11",
["0227D7C0074F2D0AC935631990DA8EC5914597B4"] = "O EUGC",
["C892BBDA3993E66BD0D56A10ECD30B1EE612210F"] = "O JP10",
["DBFC81F655187DC6FEFD93FA6798FACE770D579D"] = "O JP11",
["FA5F5942B27480D60243C2D52C0E93E26B9E6B86"] = "O JP12",
["0769C84615422D60F16925CD859593CDFA597F84"] = "O JPGC",
-- Ocarina of Time: Master Quest
["8B5D13AAC69BFBF989861CFDC50B1D840945FC1D"] = "O USGC MQ",
["F46239439F59A2A594EF83CF68EF65043B1BFFE2"] = "O EUGC MQ",
["50BEBEDAD9E0F10746A52B07239E47FA6C284D03"] = "O EUDB MQ",
["DD14E143C4275861FE93EA79D0C02E36AE8C6C2F"] = "O JPGC MQ",
}
local basics = {
@ -26,57 +40,142 @@ local basics = {
link = 0x1EF670,
global = 0x3E6B20,
actor = 0x3FFDB0,
LLsize = 0x10,
},
["M USDE"] = {
link = 0x1EEE80,
global = 0x3E63B0,
actor = 0x3FF680,
LLsize = 0x30,
},
["M USGC"] = {
link = 0x1ED830,
global = 0x381260,
actor = 0x39A4F0,
LLsize = 0x10,
},
["M EU10"] = {
link = 0x1E6B50,
global = 0x3DDFC0,
actor = 0x3F7250,
LLsize = 0x10,
},
["M EU11"] = {
link = 0x1E6EF0,
global = 0x3DE360,
actor = 0x3F75F0,
LLsize = 0x10,
},
["M EUDB"] = {
link = 0x23F790,
global = 0x448700,
actor = 0x4619D0,
LLsize = 0x30,
},
["M EUGC"] = {
link = 0x1E5480,
global = 0x378EB0,
actor = 0x392140,
LLsize = 0x10,
},
["M JP10"] = {
link = 0x1EF460,
global = 0x3E6CF0,
actor = 0x3FFFA0,
LLsize = 0x30,
},
["M JP11"] = {
link = 0x1EF710,
global = 0x3E6FB0,
actor = 0x400260,
LLsize = 0x30,
},
["M JPGC"] = {
link = 0x1ED820,
global = 0x381250,
actor = 0x39A4E0,
LLsize = 0x10,
},
["O US10"] = {
link = 0x11A5D0,
global = 0x1C84A0,
actor = 0x1DAA30,
LLsize = 0x30,
},
["O US11"] = {
link = 0x11A7B0,
global = 0x1C8660,
actor = 0x1DABF0,
LLsize = 0x30,
},
["O US12"] = {
link = 0x11AC80,
global = 0x1C8D60,
actor = 0x1DB2F0,
LLsize = 0x30,
},
["O USGC"] = {
link = 0x11B148,
global = 0x1C9660,
actor = 0x1DBBB0,
LLsize = 0x10,
},
["O EU10"] = {
link = 0x1183D0,
global = 0x1C64E0,
actor = 0x1D8A70,
LLsize = 0x30,
},
["O EU11"] = {
link = 0x118410,
global = 0x1C6520,
actor = 0x1D8AB0,
LLsize = 0x30,
},
["O EUGC"] = {
link = 0x118958,
global = 0x1C6E60,
actor = 0x1D93B0,
LLsize = 0x10,
},
["O JPGC"] = {
link = 0x11B168,
global = 0x1C9660,
actor = 0x1DBBB0,
LLsize = 0x10,
},
["O USGC MQ"] = {
link = 0x11B128,
global = 0x1C9620,
actor = 0x1DBB70,
LLsize = 0x10,
},
["O EUGC MQ"] = {
link = 0x118938,
global = 0x1C6E20,
actor = 0x1D9370,
LLsize = 0x10,
},
["O EUDB MQ"] = {
link = 0x15E660,
global = 0x212020,
actor = 0x2245B0,
LLsize = 0x30,
},
["O JPGC MQ"] = {
link = 0x11B148,
global = 0x1C9660,
actor = 0x1DBBB0,
LLsize = 0x10,
},
}
local same = {
["O JP10"] = "O US10",
["O JP11"] = "O US11",
["O JP12"] = "O US12",
--["O JPGC MQ"] = "O USGC", -- maybe?
}
--while version == nil do
@ -89,12 +188,14 @@ local v = version:sub(1, 2)
oot = v == "O "
mm = v == "M "
local b = basics[version]
local rv = same[version] or version
local b = basics[rv]
function AL(a, s) return A(b.link + a, s) end
function AG(a, s) return A(b.global + a, s) end
function AA(a, s) return A(b.actor + a, s) end
addrs = require(here..version)
addrs = require(here..rv)
local common = require(here..v.."common")