through wip sub_81152BC

This commit is contained in:
PikalaxALT
2018-11-20 08:52:28 -05:00
parent 8e5da87144
commit fb3d416283
3 changed files with 190 additions and 179 deletions
-35
View File
@@ -5,41 +5,6 @@
.text
thumb_func_start sub_8115280
sub_8115280: @ 8115280
push {r4,lr}
adds r2, r0, 0
adds r4, r1, 0
movs r0, 0x23
adds r1, r2, 0
bl sub_8113DE0
adds r2, r0, 0
cmp r2, 0
bne _08115298
movs r0, 0
b _081152B0
_08115298:
ldrb r0, [r4]
strb r0, [r2]
ldrb r0, [r4, 0x1]
strb r0, [r2, 0x1]
lsls r0, 24
lsrs r0, 24
cmp r0, 0x24
bne _081152AE
ldr r1, _081152B8 @ =gUnknown_203B048
movs r0, 0x1
strb r0, [r1]
_081152AE:
adds r0, r2, 0x2
_081152B0:
pop {r4}
pop {r1}
bx r1
.align 2, 0
_081152B8: .4byte gUnknown_203B048
thumb_func_end sub_8115280
thumb_func_start sub_81152BC
sub_81152BC: @ 81152BC
push {r4-r7,lr}
-144
View File
@@ -1,149 +1,5 @@
.section .rodata
.align 2
gUnknown_8456AF0:: @ 8456AF0
.4byte gUnknown_841B09F
.4byte gUnknown_841B0A4
.4byte gUnknown_841B0B5
.4byte gUnknown_841B0B9
.4byte gUnknown_841B0B9
.4byte gUnknown_841B0CD
.4byte gUnknown_841B0CD
.4byte gUnknown_841B0DD
.4byte gUnknown_841B0B5
.4byte gUnknown_841B0F6
.4byte gUnknown_841B0F6
.4byte gUnknown_841B0B5
.4byte gUnknown_841B0FF
.4byte gUnknown_841B109
.4byte gUnknown_841B116
.4byte gUnknown_841B11F
.4byte gUnknown_841B11F
.4byte gUnknown_841B130
.4byte gUnknown_841B0B5
.4byte gUnknown_841B141
.4byte gUnknown_841B14B
.4byte gUnknown_841B14B
.4byte gUnknown_841B15A
.4byte gUnknown_841B15A
.4byte gUnknown_841B166
.4byte gUnknown_841B172
.4byte gUnknown_841B180
.4byte gUnknown_841B190
.4byte gUnknown_841B11F
.4byte gUnknown_841B11F
.4byte gUnknown_841B1A3
.4byte gUnknown_841B1B7
.4byte gUnknown_841B1C7
.4byte gUnknown_841B0B5
.4byte gUnknown_841B1DA
.4byte gUnknown_841B1E5
.4byte gUnknown_841B1F4
.4byte gUnknown_841B0B5
.4byte gUnknown_841B200
.4byte gUnknown_841B20E
.4byte gUnknown_841B0B5
.4byte gUnknown_841B21C
.4byte gUnknown_841B226
.4byte gUnknown_841B226
.4byte gUnknown_841B236
.4byte gUnknown_841B0B5
.4byte gUnknown_841B246
.4byte gUnknown_841B25B
.4byte gUnknown_841B25B
.4byte gUnknown_841B268
.4byte gUnknown_841B277
gUnknown_8456BBC:: @ 8456BBC
.4byte gUnknown_841A53A
.4byte gUnknown_841AD9E
.4byte gUnknown_841ADC8
.4byte gUnknown_841ADFF
.4byte gUnknown_841AE1E
.4byte gUnknown_841AE48
.4byte gUnknown_841AEA7
.4byte gUnknown_841AEDC
.4byte gUnknown_841AFD6
.4byte gUnknown_841B005
gUnknown_8456BE4:: @ 8456BE4
.byte 0x03
.byte 0x04
.byte 0x05
.byte 0x08
.byte 0x08
.byte 0x07
.byte 0x07
.byte 0x01
.byte 0x05
.byte 0x07
.byte 0x07
.byte 0x05
.byte 0x00
.byte 0x00
.byte 0x00
.byte 0x08
.byte 0x08
.byte 0x00
.byte 0x05
.byte 0x08
.byte 0x07
.byte 0x07
.byte 0x07
.byte 0x07
.byte 0x08
.byte 0x08
.byte 0x00
.byte 0x00
.byte 0x08
.byte 0x08
.byte 0x00
.byte 0x00
.byte 0x02
.byte 0x05
.byte 0x00
.byte 0x08
.byte 0x06
.byte 0x05
.byte 0x00
.byte 0x00
.byte 0x05
.byte 0x09
.byte 0x07
.byte 0x07
.byte 0x09
.byte 0x05
.byte 0x00
.byte 0x07
.byte 0x07
.byte 0x08
.byte 0x07
gUnknown_8456C17:: @ 8456C17
.byte 0x5a
.byte 0x5b
.byte 0x5d
.byte 0x5e
.byte 0x5f
.byte 0x62
.byte 0x60
.byte 0x59
.byte 0x00
gUnknown_8456C20:: @ 8456C20
.4byte gUnknown_841AC51
.4byte gUnknown_841ABAB
.4byte gUnknown_841ABCD
.4byte gUnknown_841AC2A
.4byte gUnknown_841ABF9
.4byte gUnknown_841AC93
.4byte gUnknown_841ACBC
.4byte gUnknown_841AD69
.4byte gUnknown_841AD1D
.4byte gUnknown_841A90C
.4byte gUnknown_841A8E0
.4byte gUnknown_841AD3C
gUnknown_8456C50:: @ 8456C50
.2byte 0x0891
.2byte 0x0892
+190
View File
@@ -4543,3 +4543,193 @@ const u16 * sub_81151DC(const u16 * a0)
UnkTextUtil_StringExpandPlaceholders(gStringVar4, gUnknown_841AF6D);
return (const u16 *)(r6 + 2);
}
const u8 *const gUnknown_8456AF0[] = {
gUnknown_841B09F,
gUnknown_841B0A4,
gUnknown_841B0B5,
gUnknown_841B0B9,
gUnknown_841B0B9,
gUnknown_841B0CD,
gUnknown_841B0CD,
gUnknown_841B0DD,
gUnknown_841B0B5,
gUnknown_841B0F6,
gUnknown_841B0F6,
gUnknown_841B0B5,
gUnknown_841B0FF,
gUnknown_841B109,
gUnknown_841B116,
gUnknown_841B11F,
gUnknown_841B11F,
gUnknown_841B130,
gUnknown_841B0B5,
gUnknown_841B141,
gUnknown_841B14B,
gUnknown_841B14B,
gUnknown_841B15A,
gUnknown_841B15A,
gUnknown_841B166,
gUnknown_841B172,
gUnknown_841B180,
gUnknown_841B190,
gUnknown_841B11F,
gUnknown_841B11F,
gUnknown_841B1A3,
gUnknown_841B1B7,
gUnknown_841B1C7,
gUnknown_841B0B5,
gUnknown_841B1DA,
gUnknown_841B1E5,
gUnknown_841B1F4,
gUnknown_841B0B5,
gUnknown_841B200,
gUnknown_841B20E,
gUnknown_841B0B5,
gUnknown_841B21C,
gUnknown_841B226,
gUnknown_841B226,
gUnknown_841B236,
gUnknown_841B0B5,
gUnknown_841B246,
gUnknown_841B25B,
gUnknown_841B25B,
gUnknown_841B268,
gUnknown_841B277
};
const u8 *const gUnknown_8456BBC[] = {
gUnknown_841A53A,
gUnknown_841AD9E,
gUnknown_841ADC8,
gUnknown_841ADFF,
gUnknown_841AE1E,
gUnknown_841AE48,
gUnknown_841AEA7,
gUnknown_841AEDC,
gUnknown_841AFD6,
gUnknown_841B005
};
const u8 gUnknown_8456BE4[] = {
0x03,
0x04,
0x05,
0x08,
0x08,
0x07,
0x07,
0x01,
0x05,
0x07,
0x07,
0x05,
0x00,
0x00,
0x00,
0x08,
0x08,
0x00,
0x05,
0x08,
0x07,
0x07,
0x07,
0x07,
0x08,
0x08,
0x00,
0x00,
0x08,
0x08,
0x00,
0x00,
0x02,
0x05,
0x00,
0x08,
0x06,
0x05,
0x00,
0x00,
0x05,
0x09,
0x07,
0x07,
0x09,
0x05,
0x00,
0x07,
0x07,
0x08,
0x07
};
const u8 gUnknown_8456C17[] = {
0x5a,
0x5b,
0x5d,
0x5e,
0x5f,
0x62,
0x60,
0x59,
0x00
};
const u8 *const gUnknown_8456C20[] = {
gUnknown_841AC51,
gUnknown_841ABAB,
gUnknown_841ABCD,
gUnknown_841AC2A,
gUnknown_841ABF9,
gUnknown_841AC93,
gUnknown_841ACBC,
gUnknown_841AD69,
gUnknown_841AD1D,
gUnknown_841A90C,
gUnknown_841A8E0,
gUnknown_841AD3C
};
u16 * sub_8115280(u16 * a0, const u16 * a1)
{
u16 * r2 = sub_8113DE0(35, a0);
if (r2 == NULL)
return NULL;
*((u8 *)r2 + 0) = *((const u8 *)a1 + 0);
if ((*((u8 *)r2 + 1) = *((const u8 *)a1 + 1)) == 0x24)
gUnknown_203B048 = TRUE;
return r2 + 1;
}
/*
const u16 * sub_81152BC(const u16 * a0)
{
u8 r4;
const u16 * r5 = sub_8113E88(35, a0);
const u8 * r5_2 = (const u8 *)r5 + 0;
sub_80C4DF8(gStringVar1, r5_2[1]);
StringCopy(gStringVar2, gUnknown_8456AF0[r5_2[1]]);
if (gUnknown_8456BE4[r5_2[1]] == 5)
{
for (r4 = 0; r4 < 8; r4++)
{
if (r5_2[0] == gUnknown_8456C17[r4])
{
if (FlagGet(0x820) != TRUE)
StringExpandPlaceholders(gStringVar4, gUnknown_841AE48);
else
StringExpandPlaceholders(gStringVar4, gUnknown_841AE8F);
break;
}
}
if (r4 == 8)
StringExpandPlaceholders(gStringVar4, gUnknown_8456BBC[gUnknown_8456BE4[r5_2[1]]]);
}
else
StringExpandPlaceholders(gStringVar4, gUnknown_8456BBC[gUnknown_8456BE4[r5_2[1]]]);
return r5 + 1;
}
*/