papermario/asm/nonmatchings/os/code_4a140_len_70/strcmp.s

24 lines
962 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 strcmp
.L8006ED70:
2020-09-24 05:16:13 +02:00
/* 4A170 8006ED70 90860000 */ lbu $a2, ($a0)
/* 4A174 8006ED74 24840001 */ addiu $a0, $a0, 1
/* 4A178 8006ED78 90A20000 */ lbu $v0, ($a1)
/* 4A17C 8006ED7C 30C300FF */ andi $v1, $a2, 0xff
/* 4A180 8006ED80 304200FF */ andi $v0, $v0, 0xff
/* 4A184 8006ED84 10620003 */ beq $v1, $v0, .L8006ED94
/* 4A188 8006ED88 24A50001 */ addiu $a1, $a1, 1
/* 4A18C 8006ED8C 0801BB67 */ j .L8006ED9C
/* 4A190 8006ED90 00621023 */ subu $v0, $v1, $v0
2020-08-04 08:49:11 +02:00
.L8006ED94:
2020-09-24 05:16:13 +02:00
/* 4A194 8006ED94 14C0FFF6 */ bnez $a2, .L8006ED70
/* 4A198 8006ED98 00001021 */ addu $v0, $zero, $zero
2020-08-04 08:49:11 +02:00
.L8006ED9C:
2020-09-24 05:16:13 +02:00
/* 4A19C 8006ED9C 03E00008 */ jr $ra
/* 4A1A0 8006EDA0 00000000 */ nop
/* 4A1A4 8006EDA4 00000000 */ nop
/* 4A1A8 8006EDA8 00000000 */ nop
/* 4A1AC 8006EDAC 00000000 */ nop