Adjust assembler's comments.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6288 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2008-10-30 01:23:36 +00:00
parent cc26d6fee5
commit 5da37ddae3
22 changed files with 38 additions and 38 deletions

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# CompareMem.Asm # CompareMem.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# CopyMem.asm # CopyMem.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# ScanMem32.Asm # ScanMem32.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# ScanMem64.Asm # ScanMem64.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# ScanMem8.Asm # ScanMem8.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# SetMem.Asm # SetMem.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# SetMem16.Asm # SetMem16.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# SetMem32.Asm # SetMem32.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# SetMem64.Asm # SetMem64.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# ZeroMem.Asm # ZeroMem.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# SetMem.Asm # SetMem.S
# #
# Abstract: # Abstract:
# #
@ -34,25 +34,25 @@
ASM_PFX(InternalMemZeroMem): ASM_PFX(InternalMemZeroMem):
push rdi push rdi
push rbx push rbx
push rcx # push Buffer push rcx # push Buffer
mov rax, r8 # rax = Value mov rax, r8 # rax = Value
and rax, 0xff # rax = lower 8 bits of r8, upper 56 bits are 0 and rax, 0xff # rax = lower 8 bits of r8, upper 56 bits are 0
mov ah, al # ah = al mov ah, al # ah = al
mov bx, ax # bx = ax mov bx, ax # bx = ax
shl rax, 0x10 # rax = ax << 16 shl rax, 0x10 # rax = ax << 16
mov ax, bx # ax = bx mov ax, bx # ax = bx
mov rbx, rax # ebx = eax mov rbx, rax # ebx = eax
shl rax, 0x20 # rax = rax << 32 shl rax, 0x20 # rax = rax << 32
or rax, rbx # eax = ebx or rax, rbx # eax = ebx
mov rdi, rcx # rdi = Buffer mov rdi, rcx # rdi = Buffer
mov rcx, rdx # rcx = Count mov rcx, rdx # rcx = Count
shr rcx, 3 # rcx = rcx / 8 shr rcx, 3 # rcx = rcx / 8
cld cld
rep stosq rep stosq
mov rcx, rdx # rcx = rdx mov rcx, rdx # rcx = rdx
and rcx, 7 # rcx = rcx & 7 and rcx, 7 # rcx = rcx & 7
rep stosb rep stosb
pop rax # rax = Buffer pop rax # rax = Buffer
pop rbx pop rbx
pop rdi pop rdi
ret ret

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# CompareMem.Asm # CompareMem.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# CopyMem.Asm # CopyMem.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# ScanMem16.Asm # ScanMem16.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# ScanMem64.Asm # ScanMem64.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# ScanMem8.Asm # ScanMem8.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# SetMem.Asm # SetMem.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# SetMem16.Asm # SetMem16.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# SetMem32.Asm # SetMem32.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# SetMem64.Asm # SetMem64.S
# #
# Abstract: # Abstract:
# #

View File

@ -11,7 +11,7 @@
# #
# Module Name: # Module Name:
# #
# ZeroMem.Asm # ZeroMem.S
# #
# Abstract: # Abstract:
# #

View File

@ -46,7 +46,7 @@ ASM_PFX(InternalMemCopyMem):
mov rax, rdi # rax <- Destination as return value mov rax, rdi # rax <- Destination as return value
jae _InternalMemCopyMem_al_0000 jae _InternalMemCopyMem_al_0000
cmp r9, rdi cmp r9, rdi
jae _atSym_CopyBackward # Copy backward if overlapped jae _atSym_CopyBackward # Copy backward if overlapped
_InternalMemCopyMem_al_0000: _InternalMemCopyMem_al_0000:
mov rcx, r8 mov rcx, r8
and r8, 7 and r8, 7