xref: /original-bsd/lib/libc/vax/string/bzero.s (revision 81f6297c)
1/*
2 * Copyright (c) 1983 Regents of the University of California.
3 * All rights reserved.  The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7#ifndef lint
8	.asciz	"@(#)bzero.s	5.2 (Berkeley) 06/05/85"
9#endif not lint
10
11/* bzero(base, length) */
12
13#include "DEFS.h"
14
15ENTRY(bzero, 0)
16	movl	4(ap),r3
17	jbr	2f
181:
19	subl2	r0,8(ap)
20	movc5	$0,(r3),$0,r0,(r3)
212:
22	movzwl	$65535,r0
23	cmpl	8(ap),r0
24	jgtr	1b
25	movc5	$0,(r3),$0,8(ap),(r3)
26	ret
27