ZeroMem.asm revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
4632N/A;------------------------------------------------------------------------------
6407N/A;
4632N/A; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4632N/A; This program and the accompanying materials
4632N/A; are licensed and made available under the terms and conditions of the BSD License
4632N/A; which accompanies this distribution. The full text of the license may be found at
4632N/A; http://opensource.org/licenses/bsd-license.php.
4632N/A;
4632N/A; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
4632N/A; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
4632N/A;
4632N/A; Module Name:
4632N/A;
4632N/A; ZeroMem.Asm
4632N/A;
4632N/A; Abstract:
4632N/A;
4632N/A; ZeroMem function
4632N/A;
4632N/A; Notes:
4632N/A;
4632N/A;------------------------------------------------------------------------------
4632N/A
4632N/A .386
4632N/A .model flat,C
4632N/A .code
4632N/A
4632N/A;------------------------------------------------------------------------------
4734N/A; VOID *
4632N/A; InternalMemZeroMem (
4632N/A; IN VOID *Buffer,
4632N/A; IN UINTN Count
4632N/A; );
4632N/A;------------------------------------------------------------------------------
4632N/AInternalMemZeroMem PROC USES edi
5148N/A xor eax, eax
4632N/A mov edi, [esp + 8]
4632N/A mov ecx, [esp + 12]
4632N/A mov edx, ecx
6295N/A shr ecx, 2
6295N/A and edx, 3
4734N/A push edi
4734N/A rep stosd
4632N/A mov ecx, edx
4632N/A rep stosb
4632N/A pop eax
4632N/A ret
4632N/AInternalMemZeroMem ENDP
4632N/A
4632N/A END
4632N/A