Hi:

I want a code to multiply two number that they are in BX and DX without using MUL and just using Add action.

I want a code to multiply two number that they are in BX and DX without using MUL and just using Add action.

**Thanks in advance**You could clear AX then add BX to AX, DX times.

Will end up being slower than a regular multiply... hmm, add-only mutiply and 16bit code? ^_^

Will end up being slower than a regular multiply... hmm, add-only mutiply and 16bit code? ^_^

Sound like a homework to do ;)

Will end up being slower than a regular multiply... hmm, add-only mutiply and 16bit code? ^_^

Sound like a homework to do ;)

Aww... why aren't any courses offered where i attend offer such fun courses? Actually, that course with PDP-11 assembly was kind of fun... :P

Psuedo Code:

`set cx = 0`

for i = 0 to 15 ; (# of bits in dx)

if bit i of dx = 1 then cx += bx

shift bx left by 1

next

Now cx = bx*dx