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