blob: 24027e0fcaf1cdc7c010748ecd69432b43f082ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* ------------------------------------------------------------------ */
/* | Copyright Unpublished, MIPS Computer Systems, Inc. All Rights | */
/* | Reserved. This software contains proprietary and confidential | */
/* | information of MIPS and its suppliers. Use, disclosure or | */
/* | reproduction is prohibited without the prior express written | */
/* | consent of MIPS. | */
/* ------------------------------------------------------------------ */
/* strlen.s 1.1 */
#include <kxmips.h>
LEAF_ENTRY(strlen)
subu v0,a0,1
1: lbu v1,1(v0)
add v0,1
bne v1,zero,1b
subu v0,v0,a0
j ra
.end strlen
|