Ans:
Multiplicand:
-2 in binary: 11110
=> 2in binary: 00010 (so we can add this when we need to
perform subtract action with the multiplicand)
Multiplier:
13 in binary: 01101
Expected Result: = -26 in binary: 11111 00110
| A | 
Q | 
Q-1 | 
M | 
Action | 
| 00000 | 
01101 | 
0 | 
11110 | 
Initial values | 
| 
 | 
 | 
 | 
11110 | 
| 10: Substraction | 
 
| Right shift above value | 
 
 
 | 
| 
 | 
 | 
 | 
11110 | 
| 01: Sum | 
 
| Right shift above value | 
 
 
 | 
| 
 | 
 | 
 | 
11110 | 
| 10: Substraction | 
 
| Right shift above value | 
 
 
 | 
| 
 | 
 | 
 | 
11110 | 
| 11: Without sum or substraction | 
 
| Right shift above value | 
 
 
 | 
| 
 | 
 | 
 | 
11110 | 
| 01: Sum | 
 
| Right shift above value | 
 
 
 | 
Hence, final value = 11111 00110 = -26