Content deleted Content added
No edit summary |
|||
Line 17:
==Example==
* The multiplicand, 3, is 0011; its negative is 1101.
* The multiplier, -4, is 1100; with all zeroes added, it is 000011000.
* Perform the loop four times :
** 0000110'''00'''. The last two bits are 00.
** 000001100. A right shift.
** 0000011'''00'''. The last two bits are 00.
** 000000110. A right shift.
** 0000001'''10'''. The last two bits are 10.
** 110100110. Add the negative of the multiplicand.
** 111010011. A right shift.
** 1110100'''11'''. The last two bits are 11.
** 111101001. A right shift.
* The result is 11110100
==Why does Booth's algorithm work ?==
|