User Tools

Site Tools


super_mario_64:function_list

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
super_mario_64:function_list [2020/11/02 19:24]
someone2639 [Function List] fixed syntax errors and cleaned up some bad names
super_mario_64:function_list [2022/08/24 19:04]
someone2639 fixed an error in 8029E914
Line 1: Line 1:
 ====== Function List ====== ====== Function List ======
-^ Address ^ Function Prototype ^+This is a list of functions in Super Mario 64, and their prototypes. For using these functions with assembly hacking, refer to the [[:​cpu_abi|CPU ABI]] page. 
 + 
 +^ Address ^ Function ​Name/Prototype ^
 | 04000040 | ipl3_entry | | 04000040 | ipl3_entry |
 | 80246000 | entry_point | | 80246000 | entry_point |
Line 500: Line 502:
 | 8026A090 | ''​void play_knockback_sound(struct MarioState *m);''​ | | 8026A090 | ''​void play_knockback_sound(struct MarioState *m);''​ |
 | 8026A12C | ''​s32 lava_boost_on_wall(struct MarioState *m);''​ | | 8026A12C | ''​s32 lava_boost_on_wall(struct MarioState *m);''​ |
-| 8026A224 | ''​s32 ​check_fall_damage_or_get_stuck(struct MarioState *m, u32 hardFallAction);''​ |+| 8026A224 | ''​s32 ​check_fall_damage(struct MarioState *m, u32 hardFallAction);''​ |
 | 8026A400 | ''​s32 check_kick_or_dive_in_air(struct MarioState *m);''​ | | 8026A400 | ''​s32 check_kick_or_dive_in_air(struct MarioState *m);''​ |
 | 8026A494 | ''​s32 should_get_stuck_in_ground(struct MarioState *m);''​ | | 8026A494 | ''​s32 should_get_stuck_in_ground(struct MarioState *m);''​ |
Line 1349: Line 1351:
 | 8029E714 | ''​s16 obj_turn_toward_object(struct Object *obj, struct Object *target, s16 angleIndex, s16 turnAmount);''​ | | 8029E714 | ''​s16 obj_turn_toward_object(struct Object *obj, struct Object *target, s16 angleIndex, s16 turnAmount);''​ |
 | 8029E8BC | ''​void obj_set_parent_relative_pos(struct Object *obj, s16 relX, s16 relY, s16 relZ);''​ | | 8029E8BC | ''​void obj_set_parent_relative_pos(struct Object *obj, s16 relX, s16 relY, s16 relZ);''​ |
-| 8029E914 | ''​void ​cur_obj_set_pos_to_home_with_debug(void);''​ |+| 8029E914 | ''​void ​obj_set_pos(struct Objec *obj, f32 x, f32 y, f32 z);''​ |
 | 8029E96C | ''​void obj_set_angle(struct Object *obj, s16 pitch, s16 yaw, s16 roll);''​ | | 8029E96C | ''​void obj_set_angle(struct Object *obj, s16 pitch, s16 yaw, s16 roll);''​ |
 | 8029E9AC | spawn_object_abs_with_rot | | 8029E9AC | spawn_object_abs_with_rot |
Line 1464: Line 1466:
 | 802A1D7C | ''​s32 cur_obj_detect_steep_floor(s16 steepAngleDegrees);''​ | | 802A1D7C | ''​s32 cur_obj_detect_steep_floor(s16 steepAngleDegrees);''​ |
 | 802A1F3C | ''​s32 cur_obj_resolve_wall_collisions(void);''​ | | 802A1F3C | ''​s32 cur_obj_resolve_wall_collisions(void);''​ |
-| 802A20F4 | ''​void ​cur_obj_update_floor_and_walls(void);''​ |+| 802A20F4 | ''​void ​cur_obj_update_floor(void);''​ |
 | 802A21D4 | ''​void cur_obj_update_floor_and_resolve_wall_collisions(s16 steepSlopeDegrees);''​ | | 802A21D4 | ''​void cur_obj_update_floor_and_resolve_wall_collisions(s16 steepSlopeDegrees);''​ |
 | 802A2320 | ''​void cur_obj_update_floor_and_walls(void);''​ | | 802A2320 | ''​void cur_obj_update_floor_and_walls(void);''​ |
Line 2150: Line 2152:
 | 802C9B68 | ''​void unload_object(struct Object *obj);''​ | | 802C9B68 | ''​void unload_object(struct Object *obj);''​ |
 | 802C9C00 | ''​void deallocate_object(struct ObjectNode *freeList, struct ObjectNode *obj);''​ | | 802C9C00 | ''​void deallocate_object(struct ObjectNode *freeList, struct ObjectNode *obj);''​ |
 +| 802C9E5C | ''​void snap_object_to_floor(struct Object *obj);''​ |
 | 802C9F04 | create_object | | 802C9F04 | create_object |
 | 802CA028 | ''​void mark_obj_for_deletion(struct Object *obj);''​ | | 802CA028 | ''​void mark_obj_for_deletion(struct Object *obj);''​ |
Line 3263: Line 3266:
 | 8031C050 | m64_read_s16 | | 8031C050 | m64_read_s16 |
 | 8031C080 | m64_read_compressed_u16 | | 8031C080 | m64_read_compressed_u16 |
-| 8031C0C4 | ''​#include "​audio/​seq_channel_layer_process_script.h"''​ |+| 8031C0C4 | ''​seq_channel_layer_process_script''​ |
 | 8031CE54 | get_instrument | | 8031CE54 | get_instrument |
 | 8031CFD4 | set_instrument | | 8031CFD4 | set_instrument |
Line 4475: Line 4478:
 ===== References ===== ===== References =====
   * https://​sites.google.com/​site/​kazemario64/​tons-of-functions   * https://​sites.google.com/​site/​kazemario64/​tons-of-functions
 +  * https://​github.com/​n64decomp/​sm64/​
super_mario_64/function_list.txt · Last modified: 2023/08/23 03:57 by ZenonX