assembly - MUL operation result -
please explain how mul operation works in situation:
mul ecx
before operation:
eax: 000062f7 (25335) ecx: 3b9aca00 (1000000000) edx: 00000000 (0)
after operation:
eax: c3ace600 edx: 0000170a (5898)
would thankful if can explain me how 5898 calculated.
multiplication of 2 32-bit values can yield 64-bit result.
the result of mul
stored in edx:eax. (the upper 32 bits in edx, lower 32 bits in eax).
0x3b9aca00 * 0x62f7 = 0x170a c3ace600 ecx eax edx eax
Comments
Post a Comment