mirror of
https://github.com/pret/pmd-red.git
synced 2026-04-24 23:17:03 -05:00
quick split and decomp interrupt funcs
This commit is contained in:
parent
3c986032f8
commit
6f63cc5f28
3315
asm/code_800B540.s
3315
asm/code_800B540.s
File diff suppressed because it is too large
Load Diff
3216
asm/code_800B5F0.s
Normal file
3216
asm/code_800B5F0.s
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -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
71
src/code_800B5F0.c
Normal 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;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user