2020-03-17 04:31:30 +00:00
|
|
|
// libultra OS symbols
|
|
|
|
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;
|
2020-03-22 21:50:11 +00:00
|
|
|
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
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2021-08-22 15:52:02 +00:00
|
|
|
// 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;
|
2021-08-31 23:00:55 +00:00
|
|
|
object_boj_Skel_0000F0 = 0x060000F0;
|
2021-08-22 15:52:02 +00:00
|
|
|
|
2021-09-28 21:17:04 +00:00
|
|
|
// z_kankyo, z_demo_kankyo, z_en_viewer, z_object_kankyo, z_eff_ss_dead_dd
|
2020-03-19 22:29:33 +00:00
|
|
|
D_01000000 = 0x01000000;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-05-15 09:02:39 +00:00
|
|
|
// code_800AD920
|
|
|
|
D_0E000000 = 0x0E000000;
|
|
|
|
|
|
|
|
// z_vismono
|
2020-05-18 08:34:34 +00:00
|
|
|
D_0F000000 = 0x0F000000;
|
|
|
|
|
z_bgcheck.c, 800430A0.c, 80043480.c (#256)
* beginning of migrating changes
* got matching
* changed order a bit
* clean up bgcheck
* fix conflict
* fix conflict again
* first stab at identifying types, some oks
* Clean up most bad structs/pointer math, move relevant structs to z64bgcheck.h, get some OKs
* more OKs, z_bgcheck.bss migration, update some sys_math3d.c args
* couple more OKs
* pushing some OKs
* fix compilation issues
* code_800430A0.c OK, more files decomp'd
* 8003A3E0 big OK :)
* Decomp most of func_8003C614, decomp helper funcs
* Decomp SurfaceType, CamData, and WaterBox property related functions
* more OKs, big OK in 8003C078
* more OKs, more progress, move a function definition in z_collision_check to functions.h
* more clean-ups, more OKs, dyn_vtx is now defined as u8*
* 8003A5B8, 8003A7D8, 8003C614, 8003DD6C OK, document function args better
* data migrated, more OKs
* 80041240 OK, func_8003B3C8 and func_8003BB18 disassembled
* func_80040284, 800409A8 non_matching, add IS_ZERO macro
* All asm files have C representations, some big OKs, lots of minor tweaks
* More OKs, non-matching code cleanup
* 8003FBF4 and 80040BE4 OK, improve codegen for most functions
* format z_bgcheck.c
* fix warnings, compile errors on NON_MATCHING
* func_8003EE80 is now NON_MATCHING
* begin documenting some functions
* formatting
* more documentation, func_8003A95C OK
* fix PHYSICAL_TO_VIRTUAL changes
* fix var rename
* More documentation, functions 80040E40, 80041648 OK, change types to not be compatible with ZAP
* func_8004239C ok, more NON_MATCHING improvements, more documentation
* Implement most suggested changes
* Convert comments to slower comments
* /**
* Implement ZAP2 changes
* my anti-virus ate my format.sh results
* Rename a couple hundred functions, fix minor stuff
* rename var so that clang formats correctly
* run format.sh
* implement Petrie's matches/suggestions
* format
* matches
* and the asm
* slight error
* Add SSList
* two more matches
* stuff
* implement code changes
* clean up Petrie's matchings
Co-authored-by: Arthur <arthurtilly413@gmail.com>
Co-authored-by: fig02 <fig02srl@gmail.com>
Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain>
2021-01-08 11:12:58 +00:00
|
|
|
// z_en_a_keep or en_a_obj
|
|
|
|
D_06000730 = 0x06000730;
|
|
|
|
|
2021-09-28 21:17:04 +00:00
|
|
|
// z_bg_mjin
|
|
|
|
D_06000000 = 0x06000000;
|