summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/code_800B5F0.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/code_800B5F0.c b/src/code_800B5F0.c
index 4c111b0..5217606 100644
--- a/src/code_800B5F0.c
+++ b/src/code_800B5F0.c
@@ -3,6 +3,9 @@
#include "global.h"
extern u8 gUnknown_203B098;
+extern u32 gIntrTable[];
+extern u32 IntrMain;
+extern u8 gUnknown_202D4B8;
u8 sub_800B5F0(void)
{
@@ -69,3 +72,15 @@ void sub_800B67C(u16 r0)
INTR_CHECK |= r0;
REG_IME = 1;
}
+
+void sub_800B6B0(const u32 *r0)
+{
+ CpuCopy32(r0, &gIntrTable, 0x18); // 0x18 = 0x6 * 4 (0x4f00 is 32 bits)
+ CpuCopy32(&IntrMain, &gUnknown_202D4B8, 0x120); // 0x120 = 0x48 * 4 (0x4f00 is 32 bits)
+ INTR_VECTOR = &gUnknown_202D4B8;
+}
+
+u32 *sub_800B6E8(u32 r0)
+{
+ return &gIntrTable[r0];
+}