1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-26 14:46:16 +00:00
oot/undefined_syms.txt
snablu 4e70a24274
Decompile z_bg_haka_trap.c (#201)
* Decompile z_bg_haka_trap.c

* Update spec

delete old .reloc.s file

Co-authored-by: Random <28494085+Random06457@users.noreply.github.com>

* Deleted reloc.s and made style changes to function pointers and local vars

* Renamed timer field, added more useful temp names

* Implemented Roman's suggestions, including moving enum to header file, moving some static variables inside functions, removing unnecessary casts, removing unnecessary temps, and fixing a few style issues

* Commented dual purpose of unk_16A and formatted file again

Co-authored-by: Random <28494085+Random06457@users.noreply.github.com>
2020-06-11 17:39:47 -04:00

635 lines
13 KiB
Text

// libultra OS symbols
D_80000000 = 0x80000000;
D_80000002 = 0x80000002;
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_cow
D_060001CC = 0x060001CC;
D_06004010 = 0x06004010;
D_06004264 = 0x06004264;
D_06004348 = 0x06004348;
D_06004C30 = 0x06004C30;
D_06004E98 = 0x06004E98;
// z_en_tubo_trap
D_05017870 = 0x05017870;
D_05017A60 = 0x05017A60;
// z_en_vase
D_06000000 = 0x06000000;
// z_door_toki
D_06007888 = 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
D_06000368 = 0x06000368;
D_06000150 = 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_ma1
D_06000820 = 0x06000820;
D_06008460 = 0x06008460;
D_06008D64 = 0x06008D64;
// z_en_ma2
D_06005420 = 0x06005420;
D_06008D90 = 0x06008D90;
D_060093BC = 0x060093BC;
D_06009EE0 = 0x06009EE0;
// z_en_ms
D_060005EC = 0x060005EC;
D_06003DC0 = 0x06003DC0;
// z_en_zl1
D_06000438 = 0x06000438;
D_06008848 = 0x06008848;
D_06008C48 = 0x06008C48;
D_0600F5D8 = 0x0600F5D8;
D_06010B38 = 0x06010B38;
D_06011348 = 0x06011348;
D_060116E4 = 0x060116E4;
D_06011B88 = 0x06011B88;
D_06012118 = 0x06012118;
D_060132D8 = 0x060132D8;
D_060138E0 = 0x060138E0;
D_06013F10 = 0x06013F10;
D_060143A8 = 0x060143A8;
// 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_eff_ss_kirakira
D_04037880 = 0x04037880;
// z_en_bird
D_0600006C = 0x0600006C;
D_06002190 = 0x06002190;
// z_en_lightbox
D_06001F10 = 0x06001F10;
D_06000B70 = 0x06000B70;
// z_eff_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_eff_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_haka_trap
D_060081D0 = 0x60081D0;
D_06008D10 = 0x6008D10;
D_06009CD0 = 0x6009CD0;
// z_bg_spot01_fusya
D_06000100 = 0x06000100;
// z_eff_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_eff_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_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_ru1
D_06000690 = 0x06000690;
D_06000E54 = 0x06000E54;
D_06001488 = 0x06001488;
D_06002058 = 0x06002058;
D_06002990 = 0x06002990;
D_06002EC0 = 0x06002EC0;
D_06003608 = 0x06003608;
D_06003784 = 0x06003784;
D_06004074 = 0x06004074;
D_06004350 = 0x06004350;
D_06004648 = 0x06004648;
D_06004BF0 = 0x06004BF0;
D_060063F4 = 0x060063F4;
D_06006B9C = 0x06006B9C;
D_06007534 = 0x06007534;
D_060078E4 = 0x060078E4;
D_06008100 = 0x06008100;
D_06008AA8 = 0x06008AA8;
D_06009060 = 0x06009060;
D_060097B8 = 0x060097B8;
D_06012700 = 0x06012700;
D_06012E94 = 0x06012E94;
D_06013A64 = 0x06013A64;
// 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_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_treemouth
D_060009D0 = 0x060009D0;
D_06000E94 = 0x06000E94;
// 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_en_kz
D_060086D0 = 0x060086D0;
// 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;
// z_en_heishi2
D_06005C30 = 0x06005C30;
D_06005500 = 0x06005500;
D_0600BAC8 = 0x0600BAC8;
D_0602B060 = 0x0602B060;
D_06002C10 = 0x06002C10;
// z_bg_ddan_kd
D_06004F30 = 0x06004F30;
D_060048A8 = 0x060048A8;
// z_en_horse_ganon
D_06008668 = 0x06008668;
D_06004AA4 = 0x06004AA4;
// z_en_skjneedle
D_06000EB0 = 0x06000EB0;
// z_en_heishi3
D_0600BAC8 = 0x0600BAC8;
D_06005C30 = 0x06005C30;
D_06005880 = 0x06005880;
// z_en_floormas
D_06002158 = 0x06002158;
D_060039B0 = 0x060039B0;
// z_en_fu
D_0600057C = 0x0600057C;
D_06000B04 = 0x06000B04;
D_06006C90 = 0x06006C90;
D_0200E080 = 0x0200E080;
// z_oceff_wipe4
D_04032C90 = 0x04032C90;
// z_oceff_storm
D_04032490 = 0x04032490;
D_04032890 = 0x04032890;
// code_800AD920
D_0E000000 = 0x0E000000;
// z_vismono
D_0F000000 = 0x0F000000;
// z_en_dha
D_06000BD8 = 0x06000BD8;
D_060015B0 = 0x060015B0;
// z_en_hata
D_060000C0 = 0x060000C0;
D_06000444 = 0x06000444;
D_06002FD0 = 0x06002FD0;
// z_en_sb
D_0600004C = 0x0600004C;
D_060000B4 = 0x060000B4;
D_06000124 = 0x06000124;
D_06000194 = 0x06000194;
D_06002BF0 = 0x06002BF0;
D_06002C8C = 0x06002C8C;
// z_en_hintnuts
D_06000168 = 0x06000168;
D_060014E0 = 0x060014E0;
D_060023B8 = 0x060023B8;
D_060024CC = 0x060024CC;
D_060026C4 = 0x060026C4;
D_06002894 = 0x06002894;
D_060029BC = 0x060029BC;
D_06002B90 = 0x06002B90;
D_06002E84 = 0x06002E84;
D_06002F7C = 0x06002F7C;
D_06003128 = 0x06003128;
// z_en_guest
D_060042AC = 0x060042AC;
D_060059B0 = 0x060059B0;
// z_Bg_Spot16_Doughnut
D_06000660 = 0x06000660;
D_06000FC0 = 0x06000FC0;