xref: /csrg-svn/lib/libc/vax/string/bzero.s (revision 61222)
121423Sdist/*
2*61222Sbostic * Copyright (c) 1983, 1993
3*61222Sbostic *	The Regents of the University of California.  All rights reserved.
434480Sbostic *
542639Sbostic * %sccs.include.redist.c%
621423Sdist */
721423Sdist
834819Sbostic#if defined(LIBC_SCCS) && !defined(lint)
9*61222Sbostic	.asciz "@(#)bzero.s	8.1 (Berkeley) 06/04/93"
1034819Sbostic#endif /* LIBC_SCCS and not lint */
1121423Sdist
129710Ssam/* bzero(base, length) */
139710Ssam
149710Ssam#include "DEFS.h"
159710Ssam
1617329SsamENTRY(bzero, 0)
1710282Smckusick	movl	4(ap),r3
1810282Smckusick	jbr	2f
1910282Smckusick1:
2010282Smckusick	subl2	r0,8(ap)
2110282Smckusick	movc5	$0,(r3),$0,r0,(r3)
2210282Smckusick2:
2310282Smckusick	movzwl	$65535,r0
2410282Smckusick	cmpl	8(ap),r0
2510282Smckusick	jgtr	1b
2610282Smckusick	movc5	$0,(r3),$0,8(ap),(r3)
279710Ssam	ret
28