summaryrefslogtreecommitdiff
path: root/src/code_803C190.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code_803C190.c')
-rw-r--r--src/code_803C190.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/code_803C190.c b/src/code_803C190.c
new file mode 100644
index 0000000..26565c0
--- /dev/null
+++ b/src/code_803C190.c
@@ -0,0 +1,34 @@
+#include "global.h"
+
+struct unkStruct_80EBA18
+{
+ u32 unk0;
+ u32 unk4;
+};
+
+extern struct unkStruct_80EBA18 gUnknown_80EBA18[];
+extern s32 sub_80908D8(u32);
+
+u32 sub_803C190(u8 r0)
+{
+ return gUnknown_80EBA18[r0].unk0;
+}
+
+
+u32 sub_803C1A0(u8 r0)
+{
+ return gUnknown_80EBA18[r0].unk4;
+}
+
+s32 sub_803C1B4(s32 r0, u8 r1)
+{
+ s32 temp;
+ temp = sub_80908D8(r0);
+ if(r1 == 2)
+ {
+ temp += 2;
+ }
+ if(temp > 0xF)
+ temp = 0xF;
+ return temp;
+}