mirror of https://github.com/acidanthera/audk.git
Return buffer in rax
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4032 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a326286cb1
commit
b3ad302e0f
|
@ -33,11 +33,12 @@
|
|||
; )
|
||||
;------------------------------------------------------------------------------
|
||||
InternalMemSetMem PROC USES rdi
|
||||
mov rax, r8
|
||||
mov rdi, rcx
|
||||
xchg rcx, rdx
|
||||
push rcx ; push Buffer
|
||||
mov rax, r8 ; rax = Value
|
||||
mov rdi, rcx ; rdi = Buffer
|
||||
mov rcx, rdx ; rcx = Count
|
||||
rep stosb
|
||||
mov rax, rdx
|
||||
pop rax ; rax = Buffer
|
||||
ret
|
||||
InternalMemSetMem ENDP
|
||||
|
||||
|
|
Loading…
Reference in New Issue