ogrebattle64/src/_ob_shrill_snail.c

78 lines
1.6 KiB
C

#include "common.h"
extern s8 D_800A96C0;
extern s16 D_800B17B4;
extern s16 D_800B17B6;
extern s16 D_800B17B8;
extern s16 D_800B17BA;
extern s16 D_800B17BC;
extern s16 D_800B17BE;
extern s16 D_800B17C0;
extern u8 D_800B17C2;
extern void func_800803B8();
/* 10680 80080280 */
void __set_obPtrPtrDisplayList(Gfx **displayList) {
obPtrPtrDisplayList = displayList;
}
/* 1068C 8008028C */
void func_8008028C(void) {
D_800B17C0 = 0;
D_800B17BE = 0;
D_800B17BC = 0;
D_800B17BA = 0;
D_800B17B8 = 0;
D_800B17B6 = 0;
D_800B17B4 = 0;
D_800B17C2 = 0xFF;
D_800A96C0 = 0;
gSPDisplayList((*obPtrPtrDisplayList)++, DISPLAY_LIST_800A96C8);
}
/* 10704 80080304 */
void func_80080304(s16 arg0, s16 arg1) {
D_800B17C0 = 0;
D_800B17BE = 0;
D_800B17BC = 0;
D_800B17BA = 0;
D_800B17B8 = 0;
D_800B17B6 = 0;
D_800B17B4 = 0;
D_800B17C2 = 0xFF;
D_800A96C0 = 0;
gSPDisplayList((*obPtrPtrDisplayList)++, DISPLAY_LIST_800A96C8);
D_800B17B4 = arg0;
D_800B17B6 = arg1;
}
INCLUDE_ASM(const s32, "_ob_shrill_snail", func_8008038C);
INCLUDE_ASM(const s32, "_ob_shrill_snail", func_800803B8);
/* 10B68 80080768 */
void func_80080768(s16 arg, s16 arg1, s16 arg2) {
D_800B17B8 = arg1;
D_800B17BA = arg1;
D_800B17BC = arg2;
func_800803B8();
}
/* 10B98 80080798 */
void func_80080798(s16 arg, s16 arg1, s16 arg2) {
D_800B17B8 = arg1;
D_800B17BA = arg1;
D_800B17BC = arg2;
D_800A96C0 = 1;
func_800803B8();
D_800A96C0 = 0;
}
INCLUDE_ASM(const s32, "_ob_shrill_snail", func_800807DC);
INCLUDE_ASM(const s32, "_ob_shrill_snail", func_80080894);