matched sub_0807DAA0

This commit is contained in:
Henny022p 2021-02-16 02:51:17 +01:00
parent be9c1b4131
commit ca6aece1f4
2 changed files with 16 additions and 25 deletions

View File

@ -1526,26 +1526,3 @@ _0807DA94: .4byte gUnk_02033280
_0807DA98: .4byte gUnk_02036570
_0807DA9C: .4byte gUnk_02022750
thumb_func_start sub_0807DAA0
sub_0807DAA0: @ 0x0807DAA0
push {lr}
ldr r1, _0807DABC @ =gUnk_02036570
movs r0, #0x90
lsls r0, r0, #3
adds r2, r1, r0
_0807DAAA:
ldr r0, [r1]
cmp r0, #0
beq _0807DAC0
adds r1, #0x24
cmp r1, r2
blo _0807DAAA
movs r0, #0
b _0807DAC2
.align 2, 0
_0807DABC: .4byte gUnk_02036570
_0807DAC0:
adds r0, r1, #0
_0807DAC2:
pop {pc}

View File

@ -6,8 +6,10 @@
extern u8 gUnk_0811E514[];
extern u8 gUnk_0811E510[];
// the type is just a guess based on size and teh fact that these are around a lot in this file
// the type is just a guess based on size and the fact that these are around a lot in this file
extern ScriptExecutionContext gUnk_02022750;
// might be ScriptExecutionContext[0x20]
extern u32 gUnk_02036570;
extern void CreateSpeechBubbleExclamationMark(Entity*, u32, u32);
extern void CreateSpeechBubbleQuestionMark(Entity*, u32, u32);
@ -18,7 +20,19 @@ extern void _call_via_r6(Entity*, ScriptExecutionContext*);
void sub_0807DB88(ScriptExecutionContext* context, u32 unk1);
void sub_0807DAF0(Entity* entity, ScriptExecutionContext* context, u32 unk1);
extern u32* sub_0807DAA0();
u32* sub_0807DAA0(void) {
u32* puVar1;
puVar1 = &gUnk_02036570;
do {
if (*puVar1 == 0) {
return puVar1;
}
puVar1 = puVar1 + 9;
} while (puVar1 < &gUnk_02036570 + 0x480 / 4);
return NULL;
}
void sub_0807DAC4(ScriptExecutionContext* context) {
_DmaZero(context, 0x24);