Algorithm Imp (Add, Multi)
Algorithm Imp (Add, Multi)
Sc CS - Computer Architecture
• The sign of the result is the same as the sign of A. so no change in A is required.
However, when A < B, the sign of the result is the complement of the original
sign of A
• The final result is found in register A and its sign in As.
• The left most bit in AC and BR represents the sign bits of the numbers
• The over flow flip-flops V is set to 1 if there is an overflow. The output carry in
this case is discarded.
40
II B.Sc CS - Computer Architecture
• The sum is obtained by adding the contents of AC and BR(including their sign
bits).
• The overflow bit V is set to 1 if the ex-OR of the last two carries is 1,and it is
cleared to 0 otherwise.
2. Multiplication algorithms
41