mirror of https://github.com/acidanthera/audk.git
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:
parent
b3ad302e0f
commit
9b7c438b98
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue