sub_80179D4 and rodata

This commit is contained in:
PikalaxALT 2019-03-29 11:57:03 -04:00
parent 030fb4d898
commit ae0e70d7bb
4 changed files with 1097 additions and 1812 deletions

View File

@ -5,163 +5,6 @@
.text
thumb_func_start sub_80179D4
sub_80179D4: @ 80179D4
push {r4-r6,lr}
adds r6, r3, 0
lsls r1, 24
lsrs r4, r1, 24
lsls r2, 24
lsrs r2, 19
adds r5, r0, r2
ldrb r1, [r5, 0xA]
movs r0, 0x80
ands r0, r1
cmp r0, 0
bne _08017A4C
cmp r4, 0
bne _08017A4C
ldr r4, =gStringVar1
adds r0, r4, 0
adds r1, r5, 0
bl sub_8018404
adds r0, r5, 0x2
bl ReadAsU16
lsls r0, 16
lsrs r0, 16
adds r1, r4, 0
bl sub_800E540
adds r2, r0, 0
ldrb r1, [r5, 0xA]
movs r0, 0x7F
ands r0, r1
cmp r0, 0x45
bne _08017A38
ldr r0, =gStringVar4
ldr r3, =gUnknown_082EE6B8
lsls r1, r6, 2
lsls r2, 3
adds r1, r2
adds r1, r3
ldr r1, [r1]
bl StringExpandPlaceholders
movs r0, 0x2
b _08017B2A
.pool
_08017A38:
ldr r0, =gUnknown_082EE17C
lsls r1, r2, 2
adds r1, r0
ldr r0, [r1]
bl sub_8017020
movs r0, 0x1
b _08017B2A
.pool
_08017A4C:
ldr r0, =gStringVar1
adds r1, r5, 0
bl sub_8018404
cmp r4, 0
beq _08017A62
adds r0, r5, r4
ldrb r0, [r0, 0x3]
lsrs r6, r0, 3
movs r0, 0x1
ands r6, r0
_08017A62:
ldrb r0, [r5, 0xA]
lsls r0, 25
lsrs r0, 25
movs r1, 0x3F
ands r1, r0
cmp r1, 0x4
beq _08017AB0
cmp r1, 0x4
bgt _08017A80
cmp r1, 0x1
beq _08017A8A
b _08017B20
.pool
_08017A80:
cmp r1, 0x5
beq _08017AD0
cmp r1, 0x8
beq _08017AF4
b _08017B20
_08017A8A:
ldr r5, =gStringVar4
ldr r4, =gUnknown_082EEEAC
bl Random
lsls r0, 16
movs r1, 0xC0
lsls r1, 10
ands r1, r0
lsrs r1, 14
lsls r0, r6, 4
adds r1, r0
adds r1, r4
ldr r1, [r1]
b _08017B0E
.pool
_08017AB0:
ldr r5, =gStringVar4
ldr r4, =gUnknown_082EF1CC
bl Random
lsls r0, 16
lsrs r0, 16
movs r1, 0x1
ands r0, r1
lsls r0, 2
lsls r1, r6, 4
b _08017B08
.pool
_08017AD0:
ldr r5, =gStringVar4
ldr r4, =gUnknown_082EF010
bl Random
lsls r0, 16
movs r1, 0xC0
lsls r1, 10
ands r1, r0
lsrs r1, 14
lsls r0, r6, 4
adds r1, r0
adds r1, r4
ldr r1, [r1]
b _08017B0E
.pool
_08017AF4:
ldr r5, =gStringVar4
ldr r4, =gUnknown_082EF100
bl Random
lsls r0, 16
lsrs r0, 16
movs r1, 0x1
ands r0, r1
lsls r0, 2
lsls r1, r6, 3
_08017B08:
adds r0, r1
adds r0, r4
ldr r1, [r0]
_08017B0E:
adds r0, r5, 0
bl StringExpandPlaceholders
b _08017B28
.pool
_08017B20:
ldr r0, =gStringVar4
ldr r1, =gUnknown_082EE6C8
bl StringExpandPlaceholders
_08017B28:
movs r0, 0
_08017B2A:
pop {r4-r6}
pop {r1}
bx r1
.pool
thumb_func_end sub_80179D4
thumb_func_start nullsub_14
nullsub_14: @ 8017B38
bx lr

File diff suppressed because it is too large Load Diff

View File

@ -310,10 +310,22 @@ const char gUnknown_082ED7EC[] = "PokemonSioInfo";
const char gUnknown_082ED7FC[] = "LINK LOSS DISCONNECT!";
const char gUnknown_082ED814[] = "LINK LOSS RECOVERY NOW";
extern const char gUnknown_082ED82C[];
extern const char gUnknown_082ED84B[];
extern const char gUnknown_082ED85B[];
extern const char gUnknown_082ED868[];
ALIGNED(4) const char gUnknown_082ED82C[31] = {' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',0x00};
const char gUnknown_082ED84B[16] = {' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',0x00};
const char gUnknown_082ED85B[9] = {' ',' ',' ',' ',' ',' ',' ',' ',0x00};
ALIGNED(4) const char gUnknown_082ED864[2] = {' ',0x00};
const char gUnknown_082ED866[2] = {'*',0x00};
const char gUnknown_082ED868[8] = "NOWSLOT";
const char gUnknown_082ED870[12] = " ";
const char gUnknown_082ED87C[12] = "CLOCK DRIFT";
const char gUnknown_082ED888[12] = "BUSY SEND ";
const char gUnknown_082ED894[12] = "CMD REJECT ";
const char gUnknown_082ED8A0[12] = "CLOCK SLAVE";
const char gUnknown_082ED8A8[3][8] = {
"CHILD ",
"PARENT",
"SEARCH"
};
// .text

File diff suppressed because it is too large Load Diff