mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
sub_818E258
This commit is contained in:
parent
0b81c2920a
commit
0895d8d861
@ -5,26 +5,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_818E258
|
||||
sub_818E258: @ 818E258
|
||||
push {lr}
|
||||
movs r2, 0
|
||||
adds r1, r0, 0
|
||||
b _0818E268
|
||||
_0818E260:
|
||||
adds r0, r2, 0x1
|
||||
lsls r0, 24
|
||||
lsrs r2, r0, 24
|
||||
adds r1, 0x1
|
||||
_0818E268:
|
||||
ldrb r0, [r1]
|
||||
cmp r0, 0xFF
|
||||
bne _0818E260
|
||||
adds r0, r2, 0
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_818E258
|
||||
|
||||
thumb_func_start sub_818E274
|
||||
sub_818E274: @ 818E274
|
||||
push {r4,lr}
|
||||
|
@ -548,3 +548,12 @@ u8 sub_818E1F4(void)
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
u8 sub_818E258(const u8 *str)
|
||||
{
|
||||
u8 len;
|
||||
const u8 *ptr;
|
||||
|
||||
for (len = 0, ptr = str; *ptr != EOS; len ++, ptr ++);
|
||||
return len;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user