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
|
InternalMemSetMem PROC USES rdi
|
||||||
push rcx ; push Buffer
|
|
||||||
mov rax, r8 ; rax = Value
|
mov rax, r8 ; rax = Value
|
||||||
mov rdi, rcx ; rdi = Buffer
|
mov rdi, rcx ; rdi = Buffer
|
||||||
mov rcx, rdx ; rcx = Count
|
xchg rcx, rdx ; rcx = Count, rdx = Buffer
|
||||||
rep stosb
|
rep stosb
|
||||||
pop rax ; rax = Buffer
|
mov rax, rdx ; rax = Buffer
|
||||||
ret
|
ret
|
||||||
InternalMemSetMem ENDP
|
InternalMemSetMem ENDP
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue