* Copyright (c) 1991 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* This module is believed to contain source code proprietary to AT&T.
* Use and redistribution is subject to the Berkeley Software License
* Agreement and your Software Agreement with AT&T (Western Electric).
.asciz "@(#)s_cat_s.s 5.2 (Berkeley) 4/12/91"
movl 12(fp),r9 /* pi = &rnp */
shll $2,*16(fp),r1 /* *np * 4 */
addl3 r1,r9,r8 /* pn = &rnp + *np */
movs3 /* copy nc chars from rp to lp */
jgequ L22 /* pn reached - out of loop */
movl r10,r2 /* nc = ll */
cmpl (r9),r2 /* if (*pi < nc) */
movl (r9),r2 /* nc = *pi */
subl2 r2,r10 /* ll -= nc */
movl (r12),r0 /* rp = *rpp */
L2000005: /* pad with spaces */
L22: /* while (--ll >= 0) */