xref: /original-bsd/usr.bin/ex/bcopy.c (revision 26e4b21d)
1 /* block copy from from to to, count bytes */
2 static char *sccsid = "@(#)bcopy.c	7.1	07/08/81";
3 bcopy(from, to, count)
4 #ifdef vax
5 	char *from, *to;
6 	int count;
7 {
8 
9 	asm("	movc3	12(ap),*4(ap),*8(ap)");
10 }
11 #else
12 	register char *from, *to;
13 	register int count;
14 {
15 	while ((count--) > 0)	/* mjm */
16 		*to++ = *from++;
17 }
18 #endif
19