Re: newbie: MUL product



Brian wrote:
On Thu, 29 Mar 2007 17:04:48 +0200, Herbert Kleebauer <klee@xxxxxxxxx>

00000104: 66 f7 26 010e mulu.l val2,r0,r1|r0

What if my multiplier and multiplicand are both 32-bit to begin with,
and I'm in a 32 bit environment.

Are my options in that case as follows:

Define a QWORD (64-bit) "product" variable
move offset of product variable to register
?????

copy edx (high dword) to offset of product variable
copy eax (low dword) to (offset + 4)

copy eax to product_variable
copy edx to product_variable+4

Don't know the MASM syntax, someting like:

mov dword ptr product_variable,eax
mov dword ptr product_variable+4,edx

Or in a readable way:

move.l r0,product_variable
move.l r1,product_variable+4
.