papermario/src/code_fee30_len_2d60.c

103 lines
2.5 KiB
C
Raw Normal View History

2020-08-04 08:49:11 +02:00
#include "common.h"
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DBD40);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DBD8C);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DBDBC);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DBE78);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DBFC0);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DC008);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", spr_appendMDL_component);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", spr_transform_point);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", spr_draw_component);
2020-08-04 08:49:11 +02:00
2020-09-07 23:12:31 +02:00
s32 _spr_sign_extend_12bit(u16 val) {
s32 temp = val & 0xFFF;
2020-09-08 15:06:17 +02:00
if (temp & 0x800) {
2020-09-08 22:28:55 +02:00
return temp | ~0xFFF;
2020-09-07 23:12:31 +02:00
} else {
return temp;
}
}
s32 _spr_sign_extend_16bit(u16 val) {
s32 temp = val & 0xFFFF;
if (temp & 0x8000) {
2020-09-08 22:36:11 +02:00
return temp | ~0xFFFF;
2020-09-07 23:12:31 +02:00
} else {
return temp;
}
}
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", update_component);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DD634);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DD6DC);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DD7B0);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DD820);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", set_anim_timescale);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DD89C);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DD8F8);
2020-08-04 08:49:11 +02:00
2020-11-10 04:48:47 +01:00
void func_802DDA60(void) {
func_802DEFB4();
func_802DBFC0();
}
2020-08-04 08:49:11 +02:00
2020-10-14 17:48:20 +02:00
s32 func_802DDA84(void) {
return 0;
}
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DDA8C);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", render_sprite);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DDEC4);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DDEE4);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DDFF8);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DE044);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DE0C0);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DE0EC);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DE2AC);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DE3D8);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DE5C8);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DE5E8);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DE748);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DE780);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DE894);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DE8DC);
2020-09-24 05:16:13 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DE9D8);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DEA40);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_fee30_len_2d60", func_802DEA6C);