.title copy .psect $code,rd,nowrt,exe,pic,shr,byte ; /* ; * Copy count characters from s2 to s1. s1 must be large enough. ; * return a pointer to s1[nbytes] -- the byte following the ; * last byte copied. ; */ ; ; char * ; copy(s1, s2, nbytes) ; register char *s1, *s2; ; register int nbytes; ; { ; ; while (--nbytes >= 0) ; *s1++ = *s2++; ; return (s1); ; } .entry copy,^M movc3 12(ap),@8(ap),@4(ap); copy the string movl r3,r0 ; r0 -> just past the destination ret .end