NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on April 07, 2008, 11:29:28 PM

Title: multiplication of numbers
Post by: nobody on April 07, 2008, 11:29:28 PM
Hello there

I want to ask how can i do multiplication of numbers.
How must be record the numbers into eax and ebx.
Should the number be bcd coded ?

Please help
Title: Re: multiplication of numbers
Post by: nobody on April 08, 2008, 12:29:20 AM
mov eax, 14
mov ebx, 3
mul ebx

Look into "imul", also.

Best,
Frank
Title: Re: multiplication of numbers
Post by: nobody on April 08, 2008, 02:03:28 PM
so there is no need to transform 14 and 3 into unpacked bcd code ?
Title: Re: multiplication of numbers
Post by: nobody on April 09, 2008, 08:58:32 AM
No