Sync SetMem64 with MASM version.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@500 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bbahnsen 2006-06-13 16:06:40 +00:00
parent c0e96fed14
commit 09e91c8e30
1 changed files with 8 additions and 7 deletions

View File

@ -22,19 +22,20 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.386: .386:
#.MODEL flat,C
.code: .code:
.global InternalMemSetMem64 .global _InternalMemSetMem64
InternalMemSetMem64: _InternalMemSetMem64:
push %edi push %edi
movl 12(%esp),%ecx movl 12(%esp), %ecx
movl 16(%esp),%eax movl 16(%esp), %eax
movl 20(%esp),%edx movl 20(%esp), %edx
movl 8(%esp),%edi movl 8(%esp), %edi
L0: L0:
mov %eax,-8(%edi,%ecx,8) mov %eax,-8(%edi,%ecx,8)
mov %edx,-4(%edi,%ecx,8) mov %edx,-4(%edi,%ecx,8)
loop L0 loop L0
movl %edi,%eax movl %edi, %eax
pop %edi pop %edi
ret ret