papermario/src
sonicspiral a82d662627
Decomp func_8013A854 from code_d0a70_len_4fe0 and add UnkStructFromfunc8013A854 (#78)
* inisital docs of asm logic and mips_to_c output

* add temp unknown struct for this func
* remove comments from asm, will keep them local only.

* moved UnkSructFromfunc8013A854 to common_sructs.h
* added it's pointer to undefined_syms
* fixed struct pointer and size
* this is a new struct, no others that are `0x7C` in size

* pulled upstream. testing more code.

* fix func_8013A854 to represent latest upstream

* remove unknown struct from common structs to this func

* this is a void func

* unknown struct should be an array with size based on mipstoc outpute a0 < 0x5A

* correct number of lines of asm output from diff, but all code does not match

* fix data types in UnkStructFromfunc8013A854

* temp_v0's logical shift needs to go after UnkStructFromfunc8013A854

* remove unneeded variables

* remove unneeded variables and adding inline sll multiple calc

* add UnkStructFromfunc8013A854 back to common structs

* add UnkStructFromfunc8013A854 back to common structs

* pull latest n64 splat

* analyzing func_8013AA9C to construct UnkStructFromfunc8013A854

* may need unions to represent sub structs in this unk

* roll back struct changes and focus on regalloc

* not an array of pointers looks like there's an array of 90 structs, each struct of size 0x7C

* got OK, now need to cleanup code

* Merge branch 'master' of https://github.com/ethteck/papermario into code_d0a70_len_4fe0-func_8013A854

# Conflicts:
#	tools/n64splat

* fix comment

* remove func_8013AA9C comment used during debug

* add placeholders unks in UnkStructFromfunc8013A854 based on func_8013AA9C

* add first 6 unks in D_80156954

* update todo, add some padding

* adding padding

* adjusting padding

* finished first implementation of padding for UnkStructFromfunc8013A854

* run ./coverage.py --delete-matched

* git checkout -f master && git pull for tools/star-rod

* several changes to UnkStruct8013A854:
* change name from UnkStructFromfunc8013A854 to UnkStruct8013A854
* only include known member data
* add list typedef since this is any arracy of structs

* fix UNKSTRUCT8013A854_SIZE const

* fix スプラトゥーン n64splat

* implement UnkStruct8013A854List to track which array we are pointing to in this unknown struct

* resolve PR feedback. todo resolve splat, review alex optimization:
* move unkstruct extern, struct, and size to code_d0a70_len_4fe0.c
* format void func_8013A854 variable spacing
* add unknown symbol D_80156954;0x80156954 to tools/symbol_addrs.txt

* try fix スプラトn64 with git checkout master && git pull

* fix lint

* move var declaration to inside if and format code

* remove todo comment

Co-authored-by: sonicspiral <>
Co-authored-by: sonicspiral <mru@plusultra.localdomain>
2020-10-19 00:15:04 -04:00
..
os Nusys 1.0 -> 2.05, Makefile cleanup 2020-10-17 23:48:26 -04:00
code_1A5830.c Splitting remaining files 2020-10-14 23:49:49 -04:00
code_1AC760.c Splitting remaining files 2020-10-14 23:49:49 -04:00
code_1AF120.c format 2020-10-15 18:44:42 -04:00
code_1AF230.c Splitting remaining files 2020-10-14 23:49:49 -04:00
code_1a1f0_len_5390.c 9 more 2020-10-14 12:45:54 -04:00
code_1b40_len_20b0.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_1f580_len_1940.c consistency 2020-10-10 13:24:53 -04:00
code_2d9a0_len_890.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_2e230_len_2190.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_3A37E0.c yee 2020-10-17 22:27:25 -04:00
code_3b750_len_20.c Refactoring stuff 2020-08-12 21:56:23 -04:00
code_3bf0_len_6f0.c match func_80028838 2020-10-14 17:11:59 +01:00
code_6e40_len_500.c rename curtain globals 2020-10-15 00:16:44 +01:00
code_6e40_len_500.h rename curtain globals 2020-10-15 00:16:44 +01:00
code_7E2AA0.c 2 more 2020-09-27 13:57:40 -04:00
code_7E3700.c more 2020-10-08 17:45:26 -04:00
code_7bb60_len_41b0.c Many more functions decomped 2020-10-08 15:03:58 -04:00
code_7e0e80.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_7fd10_len_b40.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_8a160_len_700.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_8a860_len_3f30.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_8e790_len_2850.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_9d10_len_1080.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_10A8D0.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_11a50_len_7a0.c use parallel headers rather than functions.h 2020-10-14 23:37:23 +01:00
code_11a50_len_7a0.h use parallel headers rather than functions.h 2020-10-14 23:37:23 +01:00
code_13CAF0.c Split files 2020-10-14 23:20:51 -04:00
code_13FD40.c Split files 2020-10-14 23:20:51 -04:00
code_16F740.c Splitting remaining files 2020-10-14 23:49:49 -04:00
code_16c8e0.c Splitting remaining files 2020-10-14 23:49:49 -04:00
code_17D6A0.c Splitting remaining files 2020-10-14 23:49:49 -04:00
code_17FEB0.c Splitting remaining files 2020-10-14 23:49:49 -04:00
code_18C790.c Splitting remaining files 2020-10-14 23:49:49 -04:00
code_18F340.c match add_actor_decoration, near-match others 2020-10-16 21:29:54 +01:00
code_20ec0_len_5040.c Many more functions decomped 2020-10-08 15:03:58 -04:00
code_25f00_len_940.c Use all symbols in symbol_addrs.txt 2020-10-15 00:43:07 -04:00
code_31B120.c yee 2020-10-17 22:27:25 -04:00
code_31CC70.c yee 2020-10-17 22:27:25 -04:00
code_31DE70.c yee 2020-10-17 22:27:25 -04:00
code_32C110.c yee 2020-10-17 22:27:25 -04:00
code_33B180.c yee 2020-10-17 22:27:25 -04:00
code_33CDF0.c yee 2020-10-17 22:27:25 -04:00
code_33E8C0.c yee 2020-10-17 22:27:25 -04:00
code_33FE80.c yee 2020-10-17 22:27:25 -04:00
code_34EC80.c yee 2020-10-17 22:27:25 -04:00
code_34F4C0.c yee 2020-10-17 22:27:25 -04:00
code_35B9D0.c yee 2020-10-17 22:27:25 -04:00
code_35BFD0.c yee 2020-10-17 22:27:25 -04:00
code_36A8D0.c yee 2020-10-17 22:27:25 -04:00
code_36D020.c yee 2020-10-17 22:27:25 -04:00
code_36E1D0.c yee 2020-10-17 22:27:25 -04:00
code_37A3F0.c yee 2020-10-17 22:27:25 -04:00
code_37F720.c yee 2020-10-17 22:27:25 -04:00
code_38ADF0.c yee 2020-10-17 22:27:25 -04:00
code_38EE60.c yee 2020-10-17 22:27:25 -04:00
code_38F900.c yee 2020-10-17 22:27:25 -04:00
code_42e0_len_1f60.c merge master 2020-10-12 22:16:00 -04:00
code_101b90_len_8f0.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_111f0_len_860.c format 2020-10-03 16:20:12 -04:00
code_121f0_len_1290.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_135EE0.c Split files 2020-10-14 23:20:51 -04:00
code_140C70.c Split files 2020-10-14 23:20:51 -04:00
code_169BE0.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_182B30.c Splitting remaining files 2020-10-14 23:49:49 -04:00
code_190B20.c . 2020-10-17 18:05:39 -04:00
code_190B20.h renaming func 2020-10-17 17:49:33 -04:00
code_196AA0.c treats 2020-10-15 22:05:04 -04:00
code_197F40.c 🐱 2020-10-16 16:29:55 -04:00
code_303c0_len_3e10.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_316a70.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_316d90.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_316f30.c Refactoring stuff 2020-08-12 21:56:23 -04:00
code_317E50.c yee 2020-10-17 22:27:25 -04:00
code_320C50.c yee 2020-10-17 22:27:25 -04:00
code_323A50.c yee 2020-10-17 22:27:25 -04:00
code_324A10.c yee 2020-10-17 22:27:25 -04:00
code_324F10.c yee 2020-10-17 22:27:25 -04:00
code_325AD0.c yee 2020-10-17 22:27:25 -04:00
code_325EE0.c yee 2020-10-17 22:27:25 -04:00
code_333EC0.c yee 2020-10-17 22:27:25 -04:00
code_341d0_len_20d0.c Merge branch 'master' into in-progress 2020-10-14 16:02:26 -04:00
code_344A10.c yee 2020-10-17 22:27:25 -04:00
code_354F60.c yee 2020-10-17 22:27:25 -04:00
code_355EE0.c yee 2020-10-17 22:27:25 -04:00
code_362a0_len_2f70.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_374E50.c yee 2020-10-17 22:27:25 -04:00
code_391D30.c yee 2020-10-17 22:27:25 -04:00
code_415D90.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_759b0_len_61b0.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_838b0_len_5900.c match some stub functions 2020-10-14 16:48:20 +01:00
code_891b0_len_fb0.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_1000_len_60.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_1060_len_310.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_1086a0_len_fc0.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_1370_len_7d0.c Nusys 1.0 -> 2.05, Makefile cleanup 2020-10-17 23:48:26 -04:00
code_1421C0.c Split files 2020-10-14 23:20:51 -04:00
code_1776B0.c Splitting remaining files 2020-10-14 23:49:49 -04:00
code_1967B0.c match add_actor_decoration, near-match others 2020-10-16 21:29:54 +01:00
code_3169f0.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_3251D0.c yee 2020-10-17 22:27:25 -04:00
code_3278F0.c yee 2020-10-17 22:27:25 -04:00
code_3419E0.c yee 2020-10-17 22:27:25 -04:00
code_3454E0.c yee 2020-10-17 22:27:25 -04:00
code_3584C0.c yee 2020-10-17 22:27:25 -04:00
code_3602C0.c yee 2020-10-17 22:27:25 -04:00
code_3740B0.c yee 2020-10-17 22:27:25 -04:00
code_3812C0.c yee 2020-10-17 22:27:25 -04:00
code_3889D0.c yee 2020-10-17 22:27:25 -04:00
code_3928D0.c yee 2020-10-17 22:27:25 -04:00
code_6000.c PR suggestions, game status macro 2020-09-13 19:03:22 -04:00
code_6240_len_c00.c more 2020-10-08 17:45:26 -04:00
code_7340_len_b00.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_8230_len_1ae0.c 🌠 2020-10-16 23:47:10 -04:00
code_10400_len_d30.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_11130_len_c0.c a few changes 2020-09-23 23:16:13 -04:00
code_13480_len_3f0.c Many more functions decomped 2020-10-08 15:03:58 -04:00
code_13870_len_6980.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_26840_len_20d0.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_28910_len_5090.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_39210_len_aa0.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_80850_len_3060.c PR comments 2020-10-04 16:11:49 -04:00
code_102610_len_2330.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_104940_len_dc0.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_105700_len_2130.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_107830_len_e70.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_109660_len_1270.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_163400.c Split files 2020-10-14 23:20:51 -04:00
code_165490.c Split files 2020-10-14 23:20:51 -04:00
code_167570.c more goods 2020-09-26 21:02:29 -04:00
code_168590.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_181810.c near-match ActorSpeak 2020-10-17 21:21:57 +01:00
code_317020.c yee 2020-10-17 22:27:25 -04:00
code_319670.c yee 2020-10-17 22:27:25 -04:00
code_325070.c yee 2020-10-17 22:27:25 -04:00
code_328110.c yee 2020-10-17 22:27:25 -04:00
code_331940.c yee 2020-10-17 22:27:25 -04:00
code_337240.c yee 2020-10-17 22:27:25 -04:00
code_339250.c yee 2020-10-17 22:27:25 -04:00
code_342140.c yee 2020-10-17 22:27:25 -04:00
code_343680.c yee 2020-10-17 22:27:25 -04:00
code_352440.c yee 2020-10-17 22:27:25 -04:00
code_356980.c yee 2020-10-17 22:27:25 -04:00
code_366030.c yee 2020-10-17 22:27:25 -04:00
code_372790.c yee 2020-10-17 22:27:25 -04:00
code_376460.c yee 2020-10-17 22:27:25 -04:00
code_377070.c yee 2020-10-17 22:27:25 -04:00
code_385640.c yee 2020-10-17 22:27:25 -04:00
code_389850.c yee 2020-10-17 22:27:25 -04:00
code_E21870.c Some shtuff 2020-10-15 18:11:56 -04:00
code_ED510.c fully matched code_e940_len_290.c 2020-10-09 14:26:17 -04:00
code_F5750.c fully matched code_e940_len_290.c 2020-10-09 14:26:17 -04:00
code_a5dd0_len_114e0.c match create_part_shadow and heroes_is_ability_active 2020-10-16 17:59:36 +01:00
code_a5dd0_len_114e0.h match create_part_shadow and heroes_is_ability_active 2020-10-16 17:59:36 +01:00
code_ad90_len_2880.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_b72b0_len_15ed0.c 🌠 2020-10-16 23:47:10 -04:00
code_cd180_len_38f0.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_d0a70_len_4fe0.c Decomp func_8013A854 from code_d0a70_len_4fe0 and add UnkStructFromfunc8013A854 (#78) 2020-10-19 00:15:04 -04:00
code_d5a50_len_5fd0.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_d610_len_1330.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_dba20_len_350.c saving for later 2020-10-02 02:07:54 -04:00
code_dbd70_len_700.c fixing format 2020-10-10 13:42:15 -04:00
code_dc470_len_14c0.c merge master 2020-10-12 22:16:00 -04:00
code_dd930_len_1c0.c merge master 2020-10-12 22:16:00 -04:00
code_ddaf0_len_c50.c address final PR stuff 2020-10-12 22:54:27 -04:00
code_de740_len_23f0.c formatting 2020-09-25 21:55:04 -04:00
code_e0b30_len_b80.c big merg 2020-09-28 16:59:36 -04:00
code_e20eb0.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
code_e79b0_len_1920.c format code_e79b0_len_1920.c 2020-10-13 20:57:50 +01:00
code_e940_len_290.c fully matched code_e940_len_290.c 2020-10-09 14:26:17 -04:00
code_ebd0_len_6a0.c use parallel headers rather than functions.h 2020-10-14 23:37:23 +01:00
code_ebd0_len_6a0.h use parallel headers rather than functions.h 2020-10-14 23:37:23 +01:00
code_ef070_len_3400.c big merg 2020-09-28 16:59:36 -04:00
code_f4c60_len_4300.c more 2020-09-25 22:49:59 -04:00
code_f8f60_len_1560.c address final PR stuff 2020-10-12 22:54:27 -04:00
code_f270_len_1190.c add newline to no-op func blocks 2020-10-14 17:15:50 +01:00
code_f2470_len_27f0.c 9 more 2020-10-14 12:45:54 -04:00
code_fa4c0_len_3bf0.c Many more functions decomped 2020-10-08 15:03:58 -04:00
code_fe0b0_len_5a0.c More decomp + coverage fix 2020-09-25 21:51:54 -04:00
code_fee30_len_2d60.c match some stub functions 2020-10-14 16:48:20 +01:00
guOrtho.c ASM macro fix, decomp of many 2020-09-25 17:18:09 -04:00
si.c si.c 2020-10-17 21:05:17 -04:00