X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FDivU64x32Remainder.asm;h=e025b22c2d278fe8869cbffdc15c8abba7090094;hp=a836e22d0db671c83f9fae605fe4570c06b2e918;hb=a9a812a0ed4ab3d83941fdc6da281aebdb9bb296;hpb=741fb364170375f89aa9c29488cc402db07a3776 diff --git a/MdePkg/Library/BaseLib/Ia32/DivU64x32Remainder.asm b/MdePkg/Library/BaseLib/Ia32/DivU64x32Remainder.asm index a836e22d0d..e025b22c2d 100644 --- a/MdePkg/Library/BaseLib/Ia32/DivU64x32Remainder.asm +++ b/MdePkg/Library/BaseLib/Ia32/DivU64x32Remainder.asm @@ -33,18 +33,18 @@ ; ); ;------------------------------------------------------------------------------ InternalMathDivRemU64x32 PROC - mov ecx, [esp + 12] - mov eax, [esp + 8] + mov ecx, [esp + 12] ; ecx <- divisor + mov eax, [esp + 8] ; eax <- dividend[32..63] xor edx, edx - div ecx + div ecx ; eax <- quotient[32..63], edx <- remainder push eax - mov eax, [esp + 8] - div ecx - mov ecx, [esp + 20] + mov eax, [esp + 8] ; eax <- dividend[0..31] + div ecx ; eax <- quotient[0..31] + mov ecx, [esp + 20] ; ecx <- Remainder jecxz @F ; abandon remainder if Remainder == NULL mov [ecx], edx @@: - pop edx + pop edx ; edx <- quotient[32..63] ret InternalMathDivRemU64x32 ENDP