Restore original algorithm and add comments

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4033 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney 2007-10-06 21:59:01 +00:00
parent b3ad302e0f
commit 9b7c438b98
1 changed files with 2 additions and 3 deletions

View File

@ -33,12 +33,11 @@
; )
;------------------------------------------------------------------------------
InternalMemSetMem PROC USES rdi
push rcx ; push Buffer
mov rax, r8 ; rax = Value
mov rdi, rcx ; rdi = Buffer
mov rcx, rdx ; rcx = Count
xchg rcx, rdx ; rcx = Count, rdx = Buffer
rep stosb
pop rax ; rax = Buffer
mov rax, rdx ; rax = Buffer
ret
InternalMemSetMem ENDP