papermario/asm/nonmatchings/os/code_3fa50_len_f60/strlen.s

16 lines
618 B
ArmAsm
Raw Normal View History

2020-09-24 05:16:13 +02:00
.set noat # allow manual use of $at
2020-08-04 08:49:11 +02:00
.set noreorder # don't insert nops after branches
glabel strlen
2020-09-24 05:16:13 +02:00
/* 3FE50 80064A50 80820000 */ lb $v0, ($a0)
/* 3FE54 80064A54 10400005 */ beqz $v0, .L80064A6C
/* 3FE58 80064A58 00801821 */ addu $v1, $a0, $zero
/* 3FE5C 80064A5C 24630001 */ addiu $v1, $v1, 1
2020-08-04 08:49:11 +02:00
.L80064A60:
2020-09-24 05:16:13 +02:00
/* 3FE60 80064A60 80620000 */ lb $v0, ($v1)
/* 3FE64 80064A64 5440FFFE */ bnel $v0, $zero, .L80064A60
/* 3FE68 80064A68 24630001 */ addiu $v1, $v1, 1
2020-08-04 08:49:11 +02:00
.L80064A6C:
2020-09-24 05:16:13 +02:00
/* 3FE6C 80064A6C 03E00008 */ jr $ra
/* 3FE70 80064A70 00641023 */ subu $v0, $v1, $a0