Tyler McGavran
0923e94420
Match all but one function in code_802B0210.c ( #217 )
...
Required getting the .rodata for that file correct too.
Matched a couple other funtions here and there as well.
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
2022-06-11 14:55:45 -07:00
Tyler McGavran
56120481f9
Match several functions in code_802B0210 ( #216 )
...
Several other functions are as matched as the can be, needing only
the addition of some RODATA to fully match.
Others are in a mostly-matched state, but have some incorrect
register allocation. More investigation/work is needed to
figure that out.
Most of those leftover have had their m2c output regenerated.
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
2022-06-01 23:48:44 -07:00
Tyler McGavran
84cb46c0e5
Update and add some header files ( #205 )
...
* Update header files for main, memory and math_util
* Required updating func_802A82E4 to keep the match
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
2022-05-20 18:51:56 -07:00
MegaMech
489e897147
Update gitignore & match more actor funcs ( #206 )
...
* import random_u16 to sm64
* rand math decomp
* Match func_80298AC0
* Match some actor funcs
* Renames
* update gitignore for .bin textures
* update player struct member 34 to Vec3f
* Named and documented actor destroy funcs
2022-05-19 13:20:39 -07:00
Tyler McGavran
63c4f48340
Match func_802B0570 and fix BananaActor ( #204 )
...
I misunderstood how unions worked. In order to accomplish the
original goal, the 3 named s16's need to be in a struct instead
of just floating around.
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
2022-05-18 01:45:46 -06:00
Tyler McGavran
55a30f5c8c
Give a name to the list of actors ( #200 )
...
Add a define for the size of the actor list, and add a comment
cautioning people about how to appropriately interact with
the specialized types.
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
2022-05-14 20:03:42 -06:00
Tyler McGavran
bbfdb9338c
Give names to a couple vec3*_set functions ( #197 )
...
* Give names to a couple vec3*_set functions
Change vec3f_set to sm64_vec3f_set
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
2022-05-13 22:31:54 -07:00
Tyler McGavran
49845b1fe9
Added more actor types and some defines ( #194 )
...
* Added more actor types and some defines
Also adjusted the generic Actor struct to have some of its members
have names that are generally reasonable for all types of actors
Added a union to the BananActor struct, makes accessing the `rot`
member and the overlapping id/index members more sensible
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
2022-05-11 20:07:18 -07:00
Tyler McGavran
ecb085b291
Add some more actor types, match a function ( #191 )
...
* Add some more actor types, match a function
* Identify the boundBox member of the Player struct
Note that while the `flag` members are signed, they should be understood as just a group of bits.
Based on some googling around (see https://stackoverflow.com/a/11644749 ) the operation `thing.flag |= 0x8000`
is NOT undefined behaviour, even though that is setting the sign bit.
The numerical interpretation of the result as a signed number is implementation defined, while the
actual operation acts on the bit representation of the number.
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
2022-05-06 21:56:43 -07:00
Tyler McGavran
d4a0f7ab8f
Add types for shell and triple shell parent ( #190 )
...
Match a function and refresh m2c output for functions that handle
(triple) shells
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
2022-05-04 21:49:11 -07:00
MegaMech
2f8a1bfcb6
Actor decomp ( #183 )
...
* Actor decomp
2022-04-26 15:48:36 -07:00
Maciek Baron
20d9e8afba
Relabel/identify more variables and functions based on current knowledge ( #127 )
...
* Update labels and names based on current knowledge
* Create gChatacterSelections/gCharacterGridSelections distinction
2022-01-02 17:30:23 -07:00
Maciek Baron
7df6d01ef3
Add player and controller labels, rename function ( #123 )
...
* Add player labels, rename function
* Relabel controller vars to improve readability
2022-01-01 13:06:21 -07:00
Maciek Baron
7a0280f0e3
Add gPlayerIsAccelerating, gPlayerBalloonCount and update related code ( #105 )
...
* Add balloon count
* Add gPlayerIsThrottleActive
2021-12-20 04:22:04 -07:00
CoderStig
632512ada9
Imported funcs from sm64 to code_80004740.c and trig_tables.inc.c ( #68 )
...
* fixed float issue brought over from zeldaret
* Import trig_tables.inc.c
* Delete game_data_802BA370.s
* Import two funcs from sm64 into code_80004740.c
2021-11-28 15:42:03 -07:00
Tyler McGavran
3e0bed79d3
Add defines for cup selection ( #66 )
...
* Add defines for cup selection
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Change BATTTLE (3 T's) to BATTLE (2 T's)
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
2021-11-23 21:19:21 -07:00
CoderStig
bd6c82588a
Added gamemode and CC defines ( #64 )
...
* Added gamemode and CC defines
2021-11-23 13:34:54 -07:00
CoderStig
f88c578b98
Added defines for Player->unk_000 bitfields ( #63 )
2021-11-23 04:24:12 -07:00
Tyler McGavran
a2dc62ccf8
Jump Table Related Disassembly ( #60 )
...
* Part 1, Commit 1 of 24
audio/effects
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 2 of 24
audio/external
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 3 of 24
audio/heap
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 4 of 24
audio/port_eu
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 5 of 24
audio/seqplayer
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 6 of 24
code_80005FD0
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 7 of 24
code_8001C4D0
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 8 of 24
code_80027D00
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 9 of 24
code_800393C0
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 10 of 24
code_8003DC40
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 11 of 24
code_800431B0
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 12 of 24
code_80057C60
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 13 of 24
code_8006E9C0
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 14 of 24
code_80071F00
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 15 of 24
code_80086E70
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 16 of 24
code_8008C1D0
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 17 of 24
code_80091750
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 18 of 24
code_800AF9B0
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 19 of 24
code_8028DF00
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 20 of 24
code_80290C20
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 21 of 24
code_802B0210
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 22 of 24
code_actors
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 23 of 24
memory
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 1, Commit 24 of 24
os/__osException
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 1 of 20
audio/effects.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 2 of 20
audio/external.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 3 of 24
audio/heap.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 4 of 20
audio/port_eu.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 5 of 20
audio/seqplayer.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 6 of 20
code_80005FD0.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 7 of 20
code_8001C4D0.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 8 of 20
code_80027D00.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 9 of 20
code_8003DC40.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 10 of 20
code_800431B0.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 11 of 20
code_80057C60.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 12 of 20
code_8006E9C0.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 13 of 20
code_80071F00.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 14 of 20
code_80086E70.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 15 of 20
code_80091750.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 16 of 20
code_800AF9B0.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 17 of 20
code_80290C20.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 18 of 20
code_802B0210.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 19 of 20
code_80296A50.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 2, Commit 20 of 20
memory.c
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 3, Commit 1 of 4
code_8008C1D0
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 3, Commit 2 of 4
code_8028DF00
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 3, Commit 3 of 4
math_util
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Part 3, Commit 4 of 4
crash_screen
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
* Recreated disassemblies with a context file
Signed-off-by: Taggerung <tyler.taggerung@gmail.com >
2021-11-23 01:47:54 -08:00
CoderStig
8ab4557b39
Split asm using autodecompiler ( #49 )
...
* Split asm using autodecompiler
* Placed libultra bss and linked more C
2021-11-05 05:17:09 -06:00