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