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:
mdkinney 2007-10-06 21:53:01 +00:00
parent a326286cb1
commit b3ad302e0f
1 changed files with 5 additions and 4 deletions

View File

@ -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