mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-11 03:39:59 +00:00
a497f33bda
* Initial progress on z_message_PAL, very messy * Fix merge * Some more progress * Fix merge * More z_message_PAL * Small progress * More small progress * message_data_static files OK * Prepare z_message_tables * Matched another function, small updates * Attempt to use asm-processor static-symbols branch * Refactor text id declarations * Begin large text codes parser function * Fix merge * Refactor done * Build OK, add color and highscore names * Remove encoded text headers and automatically encode during build * Fix kanfont * Various cleanups * DISP macros * Another match aside data * Further progress * Small improvements * Deduplicate magic values for text control codes, small improvements * Tiny progress * Minor cleanups * Clean up z_message_PAL comment * Progress on large functions * Further progress on large functions * Changes to mkldscript to link .data in the .rodata section * data OK * Few improvements * Use gDPLoadTextureBlock macros where appropriate * rm z_message_tables, progress on large functions * 2 more matches * Improvements * Small progress * More progress on big function * progress * match func_80107980 * match Message_Update * match func_8010BED8 * done * Progress on remaining large functions * Small progress on largest function * Another match, extract text and move to assets, improve text build system * Small nonmatchings improvements * docs wip * Largest function maybe equivalent * Fix merge * Document do_action values, largest function is almost instruction-matching * Rename NAVI do_action to NONE, as that appears to be how that value is used in practice * Fix merge * one match * Last function is instruction-matching * Fix * Improvements thanks to engineer124 * Stack matched thanks to petrie911, now just a/v/low t regalloc issues, some cleanup * More variables labeled, use text state enum everywhere * More labels and names * Fix * Actor_IsTalking -> Actor_TalkRequested * Match func_8010C39C and remove unused asm * More docs * Mostly ocarina related docs * All msgModes named * Fix assetclean * Cleanup * Extraction fixes and headers * Suggestions * Review suggestions * Change text extraction again, only extract if the headers do not already exist * Fix * Use ast for charmap, fix assetclean for real this time * Review suggestions * BGM ids and ran formatter * Review comments * rename include_readonly to include_data_with_rodata * Remove leading 0s in number directives * Review suggestions for message_data_static * textbox pos enum comments, rename several enum names from Message to TextBox Co-authored-by: Thar0 <maximilianc64@gmail.com> Co-authored-by: Zelllll <56516451+Zelllll@users.noreply.github.com> Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain> Co-authored-by: Roman971 <romanlasnier@hotmail.com>
146 lines
3.5 KiB
Text
146 lines
3.5 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
|
|
|
|
// until ZAPD can handle non-aligned textures,
|
|
// we can't use the built assets tied to some symbols
|
|
gKm1Skel = 0x060000F0;
|
|
gKw1Skel = 0x060000F0;
|
|
object_ahg_Skel_0000F0 = 0x060000F0;
|
|
object_bji_Skel_0000F0 = 0x060000F0;
|
|
object_boj_Skel_0000F0 = 0x060000F0;
|
|
|
|
// z_player_lib
|
|
D_06025218 = 0x06025218;
|
|
D_060252D8 = 0x060252D8;
|
|
D_06025438 = 0x06025438;
|
|
D_06025598 = 0x06025598;
|
|
D_06025658 = 0x06025658;
|
|
D_060257B8 = 0x060257B8;
|
|
D_0602A738 = 0x0602A738;
|
|
D_0602CB48 = 0x0602CB48;
|
|
|
|
// z_skelanime
|
|
link_animetion_segment = 0x07000000;
|
|
|
|
// z_kankyo, z_demo_kankyo, z_en_viewer, z_object_kankyo, z_eff_ss_dead_dd
|
|
D_01000000 = 0x01000000;
|
|
|
|
// z_arms_hook
|
|
D_0602B288 = 0x0602B288;
|
|
D_0602AFF0 = 0x0602AFF0;
|
|
|
|
// code_800AD920
|
|
D_0E000000 = 0x0E000000;
|
|
|
|
// z_vismono
|
|
D_0F000000 = 0x0F000000;
|
|
|
|
// z_en_a_keep or en_a_obj
|
|
D_06000730 = 0x06000730;
|
|
|
|
// z_boss_ganon
|
|
D_02006C18 = 0x02006C18;
|
|
D_02007418 = 0x02007418;
|
|
D_06000540 = 0x06000540;
|
|
D_06000FE8 = 0x06000FE8;
|
|
D_06001440 = 0x06001440;
|
|
D_06001B0C = 0x06001B0C;
|
|
D_06001F58 = 0x06001F58;
|
|
D_06001FF8 = 0x06001FF8;
|
|
D_06002D2C = 0x06002D2C;
|
|
D_06003018 = 0x06003018;
|
|
D_0600343C = 0x0600343C;
|
|
D_06003D40 = 0x06003D40;
|
|
D_06004304 = 0x06004304;
|
|
D_06004884 = 0x06004884;
|
|
D_06004DA8 = 0x06004DA8;
|
|
D_06004F64 = 0x06004F64;
|
|
D_060058C4 = 0x060058C4;
|
|
D_06005FFC = 0x06005FFC;
|
|
D_06006028 = 0x06006028;
|
|
D_060063CC = 0x060063CC;
|
|
D_060069A0 = 0x060069A0;
|
|
D_06006AF4 = 0x06006AF4;
|
|
D_06007268 = 0x06007268;
|
|
D_0600738C = 0x0600738C;
|
|
D_06007A64 = 0x06007A64;
|
|
D_06008128 = 0x06008128;
|
|
D_060089F8 = 0x060089F8;
|
|
D_06008A88 = 0x06008A88;
|
|
D_06008F44 = 0x06008F44;
|
|
D_060096B0 = 0x060096B0;
|
|
D_06009A14 = 0x06009A14;
|
|
D_06009A20 = 0x06009A20;
|
|
D_06009D5C = 0x06009D5C;
|
|
D_0600A598 = 0x0600A598;
|
|
D_0600AA24 = 0x0600AA24;
|
|
D_0600ADDC = 0x0600ADDC;
|
|
D_0600B668 = 0x0600B668;
|
|
D_0600BE38 = 0x0600BE38;
|
|
D_0600BE90 = 0x0600BE90;
|
|
D_0600C9E8 = 0x0600C9E8;
|
|
D_0600CF00 = 0x0600CF00;
|
|
D_0600EA00 = 0x0600EA00;
|
|
D_0600F19C = 0x0600F19C;
|
|
D_06010298 = 0x06010298;
|
|
D_06010514 = 0x06010514;
|
|
D_060114E8 = 0x060114E8;
|
|
|
|
// z_bg_mjin
|
|
D_06000000 = 0x06000000;
|