papermario/src/code_fee30_len_2d60.c

91 lines
2.2 KiB
C
Raw Normal View History

2020-08-04 08:49:11 +02:00
#include "common.h"
INCLUDE_ASM("code_fee30_len_2d60", func_802DBD40);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DBD8C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DBDBC);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DBE78);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DBFC0);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DC008);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", spr_appendMDL_component);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", spr_transform_point);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("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;
if ((temp & 0x800)) {
return temp | -0x1000;
} else {
return temp;
}
}
//INCLUDE_ASM("code_fee30_len_2d60", _spr_sign_extend_16bit);
s32 _spr_sign_extend_16bit(u16 val) {
s32 temp = val & 0xFFFF;
if (temp & 0x8000) {
return temp | 0xFFFF0000;
} else {
return temp;
}
}
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", update_component);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DD634);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DD6DC);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DD7B0);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DD820);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DD88C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DD89C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DD8F8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DDA60);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DDA8C);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", render_sprite);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DDEC4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DDEE4);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DDFF8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DE0C0);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DE0EC);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DE2AC);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DE3D8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DE5C8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DE5E8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DE780);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DE894);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DE9D8);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DEA40);
2020-08-04 08:49:11 +02:00
INCLUDE_ASM("code_fee30_len_2d60", func_802DEA6C);