quick split and decomp interrupt funcs

This commit is contained in:
Seth Barberee 2020-10-13 20:07:41 -05:00
parent 3c986032f8
commit 6f63cc5f28
4 changed files with 3289 additions and 3315 deletions

File diff suppressed because it is too large Load Diff

3216
asm/code_800B5F0.s Normal file

File diff suppressed because it is too large Load Diff

View File

@ -70,6 +70,8 @@ SECTIONS {
asm/code_800AAA0.o(.text);
src/main.o(.text);
asm/code_800B540.o(.text);
src/code_800B5F0.o(.text);
asm/code_800B5F0.o(.text);
src/flash.o(.text);
asm/code_800D090.o(.text);
src/code_80118A4.o(.text);

71
src/code_800B5F0.c Normal file
View File

@ -0,0 +1,71 @@
#include "global.h"
#include "global.h"
extern u8 gUnknown_203B098;
u8 sub_800B5F0(void)
{
if(gUnknown_203B098 == 0)
{
return 0;
}
if((REG_IME & 1) != 0)
{
return 0;
}
else
{
REG_IME = 1;
return 1;
}
}
u8 sub_800B620(void)
{
if(gUnknown_203B098 == 0)
{
return 0;
}
if((REG_IME & 1) == 0)
{
return 0;
}
else
{
REG_IME = 0;
return 1;
}
}
u8 sub_800B650(void)
{
if(gUnknown_203B098 == 0)
{
return 0;
}
if((REG_IME & 1) != 0)
{
return 0;
}
else
{
return 1;
}
}
void sub_800B67C(u16 r0)
{
if(gUnknown_203B098 == 0)
{
return;
}
REG_IME = 0;
INTR_CHECK |= r0;
REG_IME = 1;
}