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:
#
# CompareMem.Asm
# CompareMem.S
#
# Abstract:
#

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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