www.pudn.com > iccavr_lib.rar > cstrcmp.s, change:2003-11-08,size:287b


; fast cstrcmp 
; 
	.text 
_cstrcmp:: 
	mov r30,r16 
	mov r31,r17 
	mov r26,r18 
	mov r27,r19 
; Z points to s1 
; X points to s2 
loop: 
	lpm 
	adiw R30,1 
	ld	r17,x+ 
	tst r17 
	breq done 
	sub	r0,r17 
	brne done 
	rjmp loop 
done: 
	mov r16,r0 
	clr r17 
	sbrc r16,7 
	com r17 
	ret