summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/ap/68020/strcat.s
blob: 95821408bc90b7de31d37736d6561ad9a7e4c720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
	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