shithub: riscv

ref: e51c4bc6e493a9cd0d9e9d7f1d24c57ae77bab65
dir: /sys/src/libc/68020/strcat.s/

View raw version
	TEXT	strcat(SB), $0
	MOVL	s1+0(FP), A2
	MOVL	s2+4(FP), A1

l1:	TSTB	(A2)+
	BNE	l1

	MOVB	(A1)+, -1(A2)
	BEQ	done

l2:	MOVB	(A1)+, (A2)+
	BNE	l2

done:	MOVL	s1+0(FP), R0
	RTS