diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2020-10-14 19:20:20 -0500 |
---|---|---|
committer | Seth Barberee <seth.barberee@gmail.com> | 2020-10-14 19:20:20 -0500 |
commit | 4409e37e7361e8731d1ac5cc1f336f13e62b28bd (patch) | |
tree | 0e8a1f35164ef87548e5b81a50cae5efc857c1d1 /src/code_800B5F0.c | |
parent | 6f63cc5f28baf344ae67984c9e698bfa5abe54af (diff) |
decomp two funcs
Diffstat (limited to 'src/code_800B5F0.c')
-rw-r--r-- | src/code_800B5F0.c | 15 |
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]; +} |