xref: /csrg-svn/lib/libc/tahoe/string/strcat.s (revision 61190)
134438Sbostic/*
2*61190Sbostic * Copyright (c) 1988, 1993
3*61190Sbostic *	The Regents of the University of California.  All rights reserved.
434438Sbostic *
542644Sbostic * %sccs.include.redist.c%
634824Sbostic *
734438Sbostic * This code is derived from software contributed to Berkeley by
834438Sbostic * Computer Consoles Inc.
934438Sbostic */
1029698Ssam
1134438Sbostic#if defined(LIBC_SCCS) && !defined(lint)
12*61190Sbostic	.asciz "@(#)strcat.s	8.1 (Berkeley) 06/04/93"
1334438Sbostic#endif /* LIBC_SCCS and not lint */
1434438Sbostic
1529698Ssam/*
1629698Ssam * Concatenate s2 on the end of s1.  S1's space must be large enough.
1729698Ssam * Return s1.
1829698Ssam *
1929698Ssam * char * strcat(s1, s2)
2029698Ssam * register char *s1, *s2;
2129698Ssam*/
2229698Ssam#include "DEFS.h"
2329698Ssam
2429698SsamENTRY(strcat, 0)
2529698Ssam	movl	4(fp),r0
2629698Ssam	movl	r0,r1
2729698Ssam	cmps2			# r0 and r1 point at null at end of s1
2829698Ssam	movl	8(fp),r0	# source string
2929698Ssam	movs2
3029698Ssam	movl	4(fp),r0
3129698Ssam	ret
32