iteration | step | multiplier | multiplicand | product |
0 | Initial values | 0011 | 0000 0010 | 0000 0000 |
1 | 1a: 1 ->prod =prod+mcand | 0011 | 0000 0010 | 0000 0010 |
2: shift left multiplicand | 0011 | 0000 0100 | 0000 0010 | |
3: shift right multiplicand | 0001 | 0000 0100 | 0000 0010 | |
2 | 1a: 1 ->prod =prod+mcand | 0001 | 0000 0100 | 0000 0110 |
2: shift left multiplicand | 0001 | 0000 1000 | 0000 0110 | |
3: shift right multiplicand | 0000 | 0000 1000 | 0000 0110 | |
3 | 1: 0 ->no operation | 0000 | 0000 1000 | 0000 0110 |
2: shift left multiplicand | 0000 | 0001 0000 | 0000 0110 | |
3: shift right multiplicand | 0000 | 0001 0000 | 0000 0110 | |
4 | 1: 0 ->no operation | 0000 | 0001 0000 | 0000 0110 |
2: shift left multiplicand | 0000 | 0010 0000 | 0000 0110 | |
3: shift right multiplicand | 0000 | 0010 0000 | 0000 0110 |
| A | B |
a | 50 | 23 |
b | 66 | 04 |