;------------------------------------------------------------------------------\r
;\r
-; Copyright (c) 2006, Intel Corporation\r
-; All rights reserved. This program and the accompanying materials\r
+; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; This program and the accompanying materials\r
; are licensed and made available under the terms and conditions of the BSD License\r
; which accompanies this distribution. The full text of the license may be found at\r
; http://opensource.org/licenses/bsd-license.php\r
; );\r
;------------------------------------------------------------------------------\r
InternalMathDivRemU64x32 PROC\r
- mov ecx, [esp + 12]\r
- mov eax, [esp + 8]\r
+ mov ecx, [esp + 12] ; ecx <- divisor\r
+ mov eax, [esp + 8] ; eax <- dividend[32..63]\r
xor edx, edx\r
- div ecx\r
+ div ecx ; eax <- quotient[32..63], edx <- remainder\r
push eax\r
- mov eax, [esp + 8]\r
- div ecx\r
- mov ecx, [esp + 20]\r
+ mov eax, [esp + 8] ; eax <- dividend[0..31]\r
+ div ecx ; eax <- quotient[0..31]\r
+ mov ecx, [esp + 20] ; ecx <- Remainder\r
jecxz @F ; abandon remainder if Remainder == NULL\r
mov [ecx], edx\r
@@:\r
- pop edx\r
+ pop edx ; edx <- quotient[32..63]\r
ret\r
InternalMathDivRemU64x32 ENDP\r
\r