aboutsummaryrefslogtreecommitdiff
path: root/S/byte_zero.S
blob: 01c166b7e4470ecdbda3680f09a0ef9e122643e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.globl byte_zero
.type	byte_zero, @function
byte_zero:
	xorb	%al, %al

.globl byte_zero_end 
byte_zero_end:
	pushl	%edi
	movl	8(%esp), %edi
	movl	12(%esp), %ecx

	cld
	rep	stosb

	popl	%edi
	ret