sub_811AB44

This commit is contained in:
PikalaxALT 2017-11-02 20:54:13 -04:00
parent 42c1164d72
commit 293dfc4823
2 changed files with 14 additions and 25 deletions

View file

@ -5,30 +5,6 @@
.text
thumb_func_start sub_811AB44
sub_811AB44: @ 811AB44
push {lr}
bl sub_811BA68
lsls r0, 24
lsrs r0, 24
cmp r0, 0x2
beq _0811AB5E
cmp r0, 0x2
blt _0811AB62
cmp r0, 0x8
bgt _0811AB62
cmp r0, 0x7
blt _0811AB62
_0811AB5E:
movs r0, 0x1
b _0811AB64
_0811AB62:
movs r0, 0
_0811AB64:
pop {r1}
bx r1
thumb_func_end sub_811AB44
thumb_func_start sub_811AB68
sub_811AB68: @ 811AB68
push {r4-r7,lr}

View file

@ -65,12 +65,13 @@ u16 sub_811ACDC(void);
u16 sub_811AE44(void);
u16 sub_811AF00(void);
u16 sub_811AF8C(void);
u16 sub_811B040(void);
u16 sub_811AFEC(void);
u16 sub_811B040(void);
u16 sub_811B08C(void);
u16 sub_811B0BC(void);
u16 sub_811B0E8(void);
u16 sub_811B0F8(void);
u8 sub_811BA68(void);
u8 sub_811BCC8(u8);
void sub_811BDF0(u8 *);
bool8 sub_811BF8C(void);
@ -524,3 +525,15 @@ static u16 sub_811AAAC(void)
}
return 0;
}
bool8 sub_811AB44(void)
{
switch (sub_811BA68())
{
case 2:
case 7:
case 8:
return TRUE;
}
return FALSE;
}