/ / String length / / int strlen(s); / char *s; / .globl strlen strlen: mov 2(sp),r0 mov r0,r1 0: tstb (r0)+ bne 0b sub r1,r0 dec r0 return