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

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -