]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.asm
Removed CommonHeader.h generated file from the MdePkg.
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibRepStr / Ia32 / SetMem.asm
1 //
2 // Include common header file for this module.
3 //
4
5
6 ;------------------------------------------------------------------------------
7 ;
8 ; Copyright (c) 2006, Intel Corporation
9 ; All rights reserved. This program and the accompanying materials
10 ; are licensed and made available under the terms and conditions of the BSD License
11 ; which accompanies this distribution. The full text of the license may be found at
12 ; http://opensource.org/licenses/bsd-license.php
13 ;
14 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 ;
17 ; Module Name:
18 ;
19 ; SetMem.Asm
20 ;
21 ; Abstract:
22 ;
23 ; SetMem function
24 ;
25 ; Notes:
26 ;
27 ;------------------------------------------------------------------------------
28
29 .386
30 .model flat,C
31 .code
32
33 ;------------------------------------------------------------------------------
34 ; VOID *
35 ; InternalMemSetMem (
36 ; IN VOID *Buffer,
37 ; IN UINTN Count,
38 ; IN UINT8 Value
39 ; )
40 ;------------------------------------------------------------------------------
41 InternalMemSetMem PROC USES edi
42 mov eax, [esp + 16]
43 mov edi, [esp + 8]
44 mov ecx, [esp + 12]
45 rep stosb
46 mov eax, [esp + 8]
47 ret
48 InternalMemSetMem ENDP
49
50 END