Mr. Roboto
2013-03-20 17:46:10
Does anyone know MIC-1 that can help me code this?
Three temporary registers are required (A,B,C)
i) Initialize A to zero
Move Multiplicand to B
Move multiplier to C
ii) Repeat the following N times where register size = N bits
a. 1-bit Logical Left shift A
b. If ( leftmostbit of C is 1 )
then { add B to A }
c. 1-bit Logical Left shift C
I don't know if it is allowed but I am willing to pay for the help through something like paypal.
Three temporary registers are required (A,B,C)
i) Initialize A to zero
Move Multiplicand to B
Move multiplier to C
ii) Repeat the following N times where register size = N bits
a. 1-bit Logical Left shift A
b. If ( leftmostbit of C is 1 )
then { add B to A }
c. 1-bit Logical Left shift C
I don't know if it is allowed but I am willing to pay for the help through something like paypal.