diff options
Diffstat (limited to 'src/code_800B5F0.c')
-rw-r--r-- | src/code_800B5F0.c | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/code_800B5F0.c b/src/code_800B5F0.c new file mode 100644 index 0000000..4c111b0 --- /dev/null +++ b/src/code_800B5F0.c @@ -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; +} |