From 5da37ddae322c6f305647285daacea6efd97d2d3 Mon Sep 17 00:00:00 2001 From: klu2 Date: Thu, 30 Oct 2008 01:23:36 +0000 Subject: Adjust assembler's comments. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6288 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/BaseMemoryLibOptDxe/Ia32/CompareMem.S | 2 +- MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CopyMem.S | 2 +- .../Library/BaseMemoryLibOptDxe/Ia32/ScanMem32.S | 2 +- .../Library/BaseMemoryLibOptDxe/Ia32/ScanMem64.S | 2 +- MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem8.S | 2 +- MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S | 2 +- MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.S | 2 +- MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem32.S | 2 +- MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem64.S | 2 +- MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ZeroMem.S | 2 +- MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S | 34 +++++++++++----------- 11 files changed, 27 insertions(+), 27 deletions(-) (limited to 'MdePkg/Library/BaseMemoryLibOptDxe') diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CompareMem.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CompareMem.S index 94216d02d6..d7ea0d1616 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CompareMem.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CompareMem.S @@ -11,7 +11,7 @@ # # Module Name: # -# CompareMem.Asm +# CompareMem.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CopyMem.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CopyMem.S index 292b83b2e0..3355829560 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CopyMem.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CopyMem.S @@ -11,7 +11,7 @@ # # Module Name: # -# CopyMem.asm +# CopyMem.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem32.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem32.S index 0cae5d3780..30f5066486 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem32.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem32.S @@ -11,7 +11,7 @@ # # Module Name: # -# ScanMem32.Asm +# ScanMem32.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem64.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem64.S index aeb63d424c..5d58c0a56a 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem64.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem64.S @@ -11,7 +11,7 @@ # # Module Name: # -# ScanMem64.Asm +# ScanMem64.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem8.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem8.S index bf19e471db..210292e105 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem8.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem8.S @@ -11,7 +11,7 @@ # # Module Name: # -# ScanMem8.Asm +# ScanMem8.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S index 1c56a8d22d..b8a60039bb 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S @@ -11,7 +11,7 @@ # # Module Name: # -# SetMem.Asm +# SetMem.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.S index 86000519ac..99b13261d4 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.S @@ -11,7 +11,7 @@ # # Module Name: # -# SetMem16.Asm +# SetMem16.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem32.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem32.S index e75bf4d9e6..8b2721573d 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem32.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem32.S @@ -11,7 +11,7 @@ # # Module Name: # -# SetMem32.Asm +# SetMem32.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem64.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem64.S index 3405819d48..e8deeb0fff 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem64.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem64.S @@ -11,7 +11,7 @@ # # Module Name: # -# SetMem64.Asm +# SetMem64.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ZeroMem.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ZeroMem.S index d5e6b2f53c..500a5524f5 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ZeroMem.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ZeroMem.S @@ -11,7 +11,7 @@ # # Module Name: # -# ZeroMem.Asm +# ZeroMem.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S b/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S index e2c4c47474..00c354032f 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S @@ -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 -- cgit v1.2.3