mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-25 09:45:02 +00:00
262f6c507c
* Decompile z_play.c and Match/Document some of z_view.c Also fix the last non matching in z_sample.c and update some game state functions. * Suggestions from PR #74 * Fix undefined reference to Gameplay_DrawOverlay * Suggestion from PR #74 (2) * Fix a fake argument in func_800BC450
485 lines
9.7 KiB
Text
485 lines
9.7 KiB
Text
// rsp microcode symbols
|
|
D_00113070 = 0x00113070;
|
|
D_001579A0 = 0x001579A0;
|
|
|
|
// libultra OS symbols
|
|
D_80000000 = 0x80000000;
|
|
D_80000004 = 0x80000004;
|
|
D_80000008 = 0x80000008;
|
|
D_8000000C = 0x8000000C;
|
|
D_80000010 = 0x80000010;
|
|
D_80000020 = 0x80000020;
|
|
osTvType = 0x80000300;
|
|
osRomBase = 0x80000308;
|
|
osResetType = 0x8000030C;
|
|
osMemSize = 0x80000318;
|
|
osAppNmiBuffer = 0x8000031C;
|
|
|
|
// OS hardware registers
|
|
D_A4040004 = 0xA4040004;
|
|
D_A4040008 = 0xA4040008;
|
|
D_A404000C = 0xA404000C;
|
|
D_A4040010 = 0xA4040010;
|
|
D_A4300008 = 0xA4300008;
|
|
D_A430000C = 0xA430000C;
|
|
D_A4400004 = 0xA4400004;
|
|
D_A4400008 = 0xA4400008;
|
|
D_A440000C = 0xA440000C;
|
|
D_A4400010 = 0xA4400010;
|
|
D_A4400014 = 0xA4400014;
|
|
D_A4400018 = 0xA4400018;
|
|
D_A440001C = 0xA440001C;
|
|
D_A4400020 = 0xA4400020;
|
|
D_A4400024 = 0xA4400024;
|
|
D_A4400028 = 0xA4400028;
|
|
D_A440002C = 0xA440002C;
|
|
D_A4400030 = 0xA4400030;
|
|
D_A4400034 = 0xA4400034;
|
|
D_A4500004 = 0xA4500004;
|
|
D_A4500008 = 0xA4500008;
|
|
D_A450000C = 0xA450000C;
|
|
D_A4500010 = 0xA4500010;
|
|
D_A4500014 = 0xA4500014;
|
|
D_A4600004 = 0xA4600004;
|
|
D_A4600005 = 0xA4600005;
|
|
D_A4600006 = 0xA4600006;
|
|
D_A4600007 = 0xA4600007;
|
|
D_A4600008 = 0xA4600008;
|
|
D_A460000C = 0xA460000C;
|
|
D_A4600010 = 0xA4600010;
|
|
D_A4600014 = 0xA4600014;
|
|
D_A4600018 = 0xA4600018;
|
|
D_A460001C = 0xA460001C;
|
|
D_A4600020 = 0xA4600020;
|
|
D_A4600024 = 0xA4600024;
|
|
D_A4600028 = 0xA4600028;
|
|
D_A460002C = 0xA460002C;
|
|
D_A4600030 = 0xA4600030;
|
|
D_A4800000 = 0xA4800000; // SI_DRAM_ADDR_REG
|
|
D_A4800004 = 0xA4800004; // SI_PIF_ADDR_RD64B_REG
|
|
D_A4800010 = 0xA4800010; // SI_PIF_ADDR_WR64B_REG
|
|
D_A4800018 = 0xA4800018; // SI_STATUS_REG
|
|
|
|
// segment addresses
|
|
D_02000000 = 0x02000000;
|
|
D_02000400 = 0x02000400;
|
|
D_02000500 = 0x02000500;
|
|
D_02000900 = 0x02000900;
|
|
D_02000A00 = 0x02000A00;
|
|
D_02001E00 = 0x02001E00;
|
|
D_02001F00 = 0x02001F00;
|
|
D_02002000 = 0x02002000;
|
|
D_02002100 = 0x02002100;
|
|
D_02002500 = 0x02002500;
|
|
D_02002580 = 0x02002580;
|
|
D_02002600 = 0x02002600;
|
|
D_02002900 = 0x02002900;
|
|
D_02002E40 = 0x02002E40;
|
|
D_02002FC0 = 0x02002FC0;
|
|
D_02003040 = 0x02003040;
|
|
D_020035C0 = 0x020035C0;
|
|
D_020038C0 = 0x020038C0;
|
|
D_02003940 = 0x02003940;
|
|
D_02003AC0 = 0x02003AC0;
|
|
D_0201DA50 = 0x0201DA50;
|
|
D_0300AA48 = 0x0300AA48;
|
|
D_03012B20 = 0x03012B20;
|
|
D_040020D0 = 0x040020D0;
|
|
D_04002160 = 0x04002160;
|
|
D_04002280 = 0x04002280;
|
|
D_04003238 = 0x04003238;
|
|
D_04004298 = 0x04004298;
|
|
D_04006020 = 0x04006020;
|
|
D_0400C808 = 0x0400C808;
|
|
D_0400C820 = 0x0400C820;
|
|
D_0400CB70 = 0x0400CB70;
|
|
D_04010130 = 0x04010130;
|
|
D_04015720 = 0x04015720;
|
|
D_04015760 = 0x04015760;
|
|
D_0401A0B0 = 0x0401A0B0;
|
|
D_0401E370 = 0x0401E370;
|
|
D_0402CF30 = 0x0402CF30;
|
|
D_04037730 = 0x04037730;
|
|
D_04038F00 = 0x04038F00;
|
|
D_04038FB0 = 0x04038FB0;
|
|
D_0403B030 = 0x0403B030;
|
|
D_0403BBA0 = 0x0403BBA0;
|
|
D_0403BCD8 = 0x0403BCD8;
|
|
D_0403F070 = 0x0403F070;
|
|
D_04042440 = 0x04042440;
|
|
D_04048160 = 0x04048160;
|
|
D_04048180 = 0x04048180;
|
|
D_04049210 = 0x04049210;
|
|
D_04049AD0 = 0x04049AD0;
|
|
D_0404D1C0 = 0x0404D1C0;
|
|
D_0404D450 = 0x0404D450;
|
|
D_05001390 = 0x05001390;
|
|
D_05001390 = 0x05001390;
|
|
D_0500CA70 = 0x0500CA70;
|
|
D_06001220 = 0x06001220;
|
|
D_06001220 = 0x06001220;
|
|
D_06001290 = 0x06001290;
|
|
D_06001290 = 0x06001290;
|
|
D_06001438 = 0x06001438;
|
|
D_06001438 = 0x06001438;
|
|
D_06001470 = 0x06001470;
|
|
D_06001470 = 0x06001470;
|
|
D_06001C40 = 0x06001C40;
|
|
D_06006CC0 = 0x06006CC0;
|
|
D_06016118 = 0x06016118;
|
|
D_06025218 = 0x06025218;
|
|
D_060252D8 = 0x060252D8;
|
|
D_06025438 = 0x06025438;
|
|
D_06025598 = 0x06025598;
|
|
D_06025658 = 0x06025658;
|
|
D_060257B8 = 0x060257B8;
|
|
D_0602A738 = 0x0602A738;
|
|
D_0602CB48 = 0x0602CB48;
|
|
D_070380D4 = 0x070380D4;
|
|
D_0703811C = 0x0703811C;
|
|
D_080895C0 = 0x080895C0;
|
|
|
|
// z_skelanime
|
|
link_animetion_segment = 0x07000000;
|
|
|
|
// z_en_tubo_trap
|
|
D_05017870 = 0x05017870;
|
|
D_05017A60 = 0x05017A60;
|
|
|
|
// z_en_vase
|
|
DL_VASE = 0x06000000;
|
|
|
|
// z_door_toki
|
|
DOOR_TOKI_COLLISION_DATA = 0x06007888;
|
|
|
|
// z_bg_spot09_obj
|
|
D_06008010 = 0x06008010;
|
|
|
|
// z_bg_spot12_gate
|
|
D_06001080 = 0x06001080;
|
|
D_060011EC = 0x060011EC;
|
|
|
|
// z_bg_spot12_saku
|
|
D_06002260 = 0x06002260;
|
|
D_0600238C = 0x0600238C;
|
|
|
|
// z_bg_spot18_futa
|
|
DL_SPOT18_FUTA = 0x06000368;
|
|
DL_SPOT18_FUTA2 = 0x06000150;
|
|
|
|
// z_bg_umajump
|
|
D_06001438 = 0x06001438;
|
|
D_06001220 = 0x06001220;
|
|
|
|
// z_item_b_heart
|
|
D_06001290 = 0x06001290;
|
|
D_06001470 = 0x06001470;
|
|
|
|
// z_door_ana
|
|
D_05001390 = 0x05001390;
|
|
|
|
// z_bg_bdan_switch
|
|
D_06005CF8 = 0x06005CF8;
|
|
D_060061A0 = 0x060061A0;
|
|
D_06005A20 = 0x06005A20;
|
|
|
|
// z_bg_elevator
|
|
D_06000360 = 0x06000360;
|
|
D_06000180 = 0x06000180;
|
|
|
|
// z_bg_hidan_fslift
|
|
D_0600B630 = 0x0600B630;
|
|
D_0600E1E8 = 0x0600E1E8;
|
|
|
|
// z_bg_hidan_syoku
|
|
D_0600A7E0 = 0x0600A7E0;
|
|
D_0600E568 = 0x0600E568;
|
|
|
|
// z_bg_jya_amishutter
|
|
D_0600C0A0 = 0x0600C0A0;
|
|
D_0600C4C8 = 0x0600C4C8;
|
|
|
|
// z_bg_jya_kanaami
|
|
D_0600F000 = 0x0600F000;
|
|
D_0600F208 = 0x0600F208;
|
|
|
|
// z_bg_menkuri_kaiten
|
|
D_060038D0 = 0x060038D0;
|
|
D_060042D8 = 0x060042D8;
|
|
|
|
// z_bg_spot01_idosoko
|
|
D_06003B20 = 0x06003B20;
|
|
D_06003C64 = 0x06003C64;
|
|
|
|
// z_bg_mizu_uzu
|
|
D_060074EC = 0x060074EC;
|
|
|
|
// z_bg_spot07_taki
|
|
D_060038FC = 0x060038FC;
|
|
D_06002590 = 0x06002590;
|
|
|
|
// z_en_ms
|
|
D_060005EC = 0x060005EC;
|
|
D_06003DC0 = 0x06003DC0;
|
|
|
|
// z_bg_spot17_funen
|
|
D_06000B40 = 0x06000B40;
|
|
|
|
// z_bg_spot00_break
|
|
D_06000908 = 0x06000908;
|
|
D_06000AF0 = 0x06000AF0;
|
|
D_06000440 = 0x06000440;
|
|
D_06000980 = 0x06000980;
|
|
|
|
// z_bg_spot15_saku
|
|
D_060004D0 = 0x060004D0;
|
|
|
|
// z_door_gerudo
|
|
D_06000040 = 0x06000040;
|
|
D_06000170 = 0x06000170;
|
|
|
|
// z_effect_ss_kirakira
|
|
D_04037880 = 0x04037880;
|
|
|
|
// z_en_bird
|
|
D_0600006C = 0x0600006C;
|
|
D_06002190 = 0x06002190;
|
|
|
|
// z_en_lightbox
|
|
D_06001F10 = 0x06001F10;
|
|
D_06000B70 = 0x06000B70;
|
|
|
|
// z_effect_ss_extra
|
|
D_06000DC0 = 0x06000DC0;
|
|
|
|
// z_bg_gate_shutter
|
|
D_06001CD0 = 0x06001CD0;
|
|
D_06001DA8 = 0x06001DA8;
|
|
|
|
// z_bg_gjyo_bridge
|
|
D_06000600 = 0x06000600;
|
|
D_06000DB8 = 0x06000DB8;
|
|
D_02002640 = 0x02002640;
|
|
|
|
// z_bg_spot09_obj
|
|
D_06008010 = 0x06008010;
|
|
|
|
// z_bg_spot15_saku
|
|
D_060003C0 = 0x060003C0;
|
|
|
|
// z_effect_ss_ice_smoke
|
|
D_060030A0 = 0x060030A0;
|
|
D_06003158 = 0x06003158;
|
|
|
|
// z_bg_haka_megane
|
|
D_06001250 = 0x06001250;
|
|
|
|
// z_bg_haka_meganebg
|
|
D_06005334 = 0x06005334;
|
|
D_06009168 = 0x06009168;
|
|
D_06000118 = 0x06000118;
|
|
|
|
// z_bg_spot01_fusya
|
|
D_06000100 = 0x06000100;
|
|
|
|
// z_effect_ss_g_ripple
|
|
D_040254B0 = 0x040254B0;
|
|
D_040244B0 = 0x040244B0;
|
|
|
|
// z_title
|
|
D_01002720 = 0x01002720;
|
|
D_01001800 = 0x01001800;
|
|
D_01000000 = 0x01000000;
|
|
|
|
// z_shot_sun
|
|
D_02007020 = 0x02007020;
|
|
|
|
// z_effect_ss_g_splash
|
|
D_04027DF0 = 0x04027DF0;
|
|
|
|
// z_demo_geff
|
|
D_06000EA0 = 0x06000EA0;
|
|
|
|
// z_demo_go
|
|
D_060029A8 = 0x060029A8;
|
|
D_06004930 = 0x06004930;
|
|
D_0600E680 = 0x0600E680;
|
|
D_0600FEF0 = 0x0600FEF0;
|
|
|
|
// z_en_test
|
|
D_0600316C = 0x0600316C;
|
|
D_06007C28 = 0x06007C28;
|
|
D_0600C438 = 0x0600C438;
|
|
D_06001C20 = 0x06001C20;
|
|
D_060081B4 = 0x060081B4;
|
|
D_060026D4 = 0x060026D4;
|
|
D_0600E2B0 = 0x0600E2B0;
|
|
D_0600B00C = 0x0600B00C;
|
|
D_0600B4E4 = 0x0600B4E4;
|
|
D_0600BE4C = 0x0600BE4C;
|
|
D_06001978 = 0x06001978;
|
|
D_0600A324 = 0x0600A324;
|
|
D_0600A99C = 0x0600A99C;
|
|
D_0600A324 = 0x0600A324;
|
|
D_0600A99C = 0x0600A99C;
|
|
D_06000444 = 0x06000444;
|
|
D_06008604 = 0x06008604;
|
|
D_06001420 = 0x06001420;
|
|
D_06009A90 = 0x06009A90;
|
|
|
|
// z_en_tk
|
|
D_04051DB0 = 0x04051DB0;
|
|
D_040521B0 = 0x040521B0;
|
|
D_040525B0 = 0x040525B0;
|
|
D_040529B0 = 0x040529B0;
|
|
D_04052DB0 = 0x04052DB0;
|
|
D_040531B0 = 0x040531B0;
|
|
D_040535B0 = 0x040535B0;
|
|
D_040539B0 = 0x040539B0;
|
|
D_06001144 = 0x06001144;
|
|
D_06001FA8 = 0x06001FA8;
|
|
D_06002F84 = 0x06002F84;
|
|
D_06003B40 = 0x06003B40;
|
|
D_06004340 = 0x06004340;
|
|
D_06004B40 = 0x06004B40;
|
|
D_0600ACE0 = 0x0600ACE0;
|
|
D_0600BC90 = 0x0600BC90;
|
|
D_0600BCA0 = 0x0600BCA0;
|
|
D_0600BE40 = 0x0600BE40;
|
|
|
|
// z_arms_hook
|
|
D_0602B288 = 0x0602B288;
|
|
D_0602AFF0 = 0x0602AFF0;
|
|
|
|
// z_bg_bdan_objects
|
|
D_060038E8 = 0x060038E8;
|
|
D_06005048 = 0x06005048;
|
|
D_06005580 = 0x06005580;
|
|
D_06008CE0 = 0x06008CE0;
|
|
|
|
// z_bg_bombwall
|
|
D_050041B0 = 0x050041B0;
|
|
D_05003FC0 = 0x05003FC0;
|
|
D_05004088 = 0x05004088;
|
|
|
|
// z_bg_bom_guard
|
|
D_06001C40 = 0x06001C40;
|
|
|
|
// z_bg_bowl_wall
|
|
D_06001B00 = 0x06001B00;
|
|
D_06000CB8 = 0x06000CB8;
|
|
D_06000610 = 0x06000610;
|
|
D_06001390 = 0x06001390;
|
|
|
|
// z_bg_ddan_jd
|
|
D_06003CE0 = 0x06003CE0;
|
|
D_060037B8 = 0x060037B8;
|
|
|
|
// z_bg_dodoago
|
|
D_06001DDC = 0x06001DDC;
|
|
D_06001350 = 0x06001350;
|
|
|
|
// z_bg_dy_yoseizo
|
|
D_02000160 = 0x02000160;
|
|
D_02001020 = 0x02001020;
|
|
D_02001F40 = 0x02001F40;
|
|
D_02000130 = 0x02000130;
|
|
D_020013E0 = 0x020013E0;
|
|
D_020025D0 = 0x020025D0;
|
|
D_06008698 = 0x06008698;
|
|
D_0601C450 = 0x0601C450;
|
|
D_060031C0 = 0x060031C0;
|
|
D_0601D514 = 0x0601D514;
|
|
D_06001DF0 = 0x06001DF0;
|
|
D_060069E8 = 0x060069E8;
|
|
D_06007CA8 = 0x06007CA8;
|
|
D_06004344 = 0x06004344;
|
|
D_06005E60 = 0x06005E60;
|
|
D_0600092C = 0x0600092C;
|
|
D_060058D8 = 0x060058D8;
|
|
D_06005860 = 0x06005860;
|
|
D_06005810 = 0x06005810;
|
|
|
|
// z_obj_elevator
|
|
D_06000180 = 0x06000180;
|
|
D_06000360 = 0x06000360;
|
|
|
|
// z_en_pu_box
|
|
D_06000380 = 0x06000380;
|
|
D_060006D0 = 0x060006D0;
|
|
|
|
// z_bg_pushbox
|
|
D_06000000 = 0x06000000;
|
|
D_06000350 = 0x06000350;
|
|
|
|
// z_en_ru2
|
|
D_060004CC = 0x060004CC;
|
|
D_06000F20 = 0x06000F20;
|
|
D_060022E0 = 0x060022E0;
|
|
D_06002AE0 = 0x06002AE0;
|
|
D_0600C700 = 0x0600C700;
|
|
D_0600D3DC = 0x0600D3DC;
|
|
D_0600DCAC = 0x0600DCAC;
|
|
D_06000DE8 = 0x06000DE8;
|
|
D_0600E630 = 0x0600E630;
|
|
D_0600F03C = 0x0600F03C;
|
|
D_0600F8B8 = 0x0600F8B8;
|
|
|
|
// z_bg_mjin
|
|
D_06000140 = 0x06000140;
|
|
D_06000330 = 0x06000330;
|
|
D_06000658 = 0x06000658;
|
|
|
|
// z_en_wallmas
|
|
D_0600299C = 0x0600299C;
|
|
D_06008FB0 = 0x06008FB0;
|
|
D_06009DB0 = 0x06009DB0;
|
|
D_060019CC = 0x060019CC;
|
|
D_06009520 = 0x06009520;
|
|
D_06000EA4 = 0x06000EA4;
|
|
D_06000590 = 0x06000590;
|
|
D_06009244 = 0x06009244;
|
|
D_060041F4 = 0x060041F4;
|
|
D_0600A054 = 0x0600A054;
|
|
D_06008688 = 0x06008688;
|
|
|
|
// z_en_lightbox
|
|
D_06000B70 = 0x06000B70;
|
|
D_06001F10 = 0x06001F10;
|
|
|
|
// z_en_dog
|
|
D_06007290 = 0x06007290;
|
|
D_06001368 = 0x06001368;
|
|
D_06000D78 = 0x06000D78;
|
|
D_06000278 = 0x06000278;
|
|
|
|
// z_obj_bombiwa
|
|
D_060009E0 = 0x060009E0;
|
|
|
|
// z_bg_toki_swd
|
|
D_06001BD0 = 0x06001BD0;
|
|
|
|
// z_bg_zg
|
|
D_060011D4 = 0x060011D4;
|
|
D_06001080 = 0x06001080;
|
|
|
|
// z_en_ds
|
|
D_06004768 = 0x06004768;
|
|
D_0600039C = 0x0600039C;
|
|
|
|
// z_bg_spot05_soko
|
|
D_06000918 = 0x06000918;
|
|
D_060012C0 = 0x060012C0;
|
|
|
|
// z_obj_comb
|
|
D_050095B0 = 0x050095B0;
|
|
D_05009940 = 0x05009940;
|
|
|
|
// z_bg_hidan_firewall
|
|
D_0600DA80 = 0x0600DA80;
|
|
|
|
// z_en_ani
|
|
D_060000F0 = 0x060000F0;
|
|
D_060067B8 = 0x060067B8;
|
|
D_060076EC = 0x060076EC;
|
|
D_060070F0 = 0x060070F0;
|