Skip to content

Commit

Permalink
Merge pull request #170 from tgsm/match-a-func
Browse files Browse the repository at this point in the history
Match sub_80141E0
  • Loading branch information
SethBarberee authored Dec 17, 2023
2 parents 6d4046b + 6e708df commit 8529cad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 34 deletions.
29 changes: 0 additions & 29 deletions asm/code_80140DC.s
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,6 @@

.text

thumb_func_start sub_80141E0
sub_80141E0:
push {r4-r6,lr}
sub sp, 0x14
lsls r6, r2, 16
movs r2, 0x1
negs r2, r2
ldr r3, _08014210
movs r5, 0
str r5, [sp]
movs r4, 0x3
str r4, [sp, 0x4]
str r5, [sp, 0x8]
str r1, [sp, 0xC]
movs r1, 0xC0
lsls r1, 18
orrs r1, r6
lsrs r1, 16
str r1, [sp, 0x10]
movs r1, 0
bl sub_8014248
add sp, 0x14
pop {r4-r6}
pop {r0}
bx r0
.align 2, 0
_08014210: .4byte gUnknown_80D485C
thumb_func_end sub_80141E0

thumb_func_start sub_8014214
sub_8014214:
push {r4-r6,lr}
Expand Down
9 changes: 4 additions & 5 deletions src/code_80140DC.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ void sub_80141B4(const u8 *text, u32 param_2, OpenedFile **file, u16 param_4)
sub_8014248(text, param_2, -1, NULL, NULL, 3, 0, file, param_4);
}

// https://decomp.me/scratch/w4sX4
// void sub_80141E0(const u8 *text, OpenedFile **file, u16 param_4)
// {
// sub_8014248(text, 0, -1, gUnknown_80D485C, NULL, 3, 0, file, param_4);
// }
void sub_80141E0(const u8 *text, OpenedFile **file, u16 param_3)
{
sub_8014248(text, 0, -1, gUnknown_80D485C, NULL, 3, 0, file, param_3 | 0x300);
}

0 comments on commit 8529cad

Please sign in to comment.