X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FDivU64x32Remainder.asm;h=e025b22c2d278fe8869cbffdc15c8abba7090094;hb=f734a10ab104f1072f94cab66a5489e0fd8fce8a;hp=a836e22d0db671c83f9fae605fe4570c06b2e918;hpb=3f566587aea64bb986866c7f69a6b82891bf59db;p=mirror_edk2.git 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