Professional Documents
Culture Documents
ANDHRA PRADESH
Name : A Rajeswara Rao.
operations
Duration : 50 Mts
Sub. Topic : Fixed point addition/subtraction basics using
signed
CM303.23 1
Teaching Aids to be used : Animation clips & Images
Objective
CM303.23 2
Recap
CM303.23 3
Representation of fixed point numbers
operations
Let the operations be performed on fixed point
numbers in signed magnitude representation
Let the two n-bit numbers are represented in two registers
AR,BR
AR: As.A
BR: Bs.B
Where As,, Bs are sign bits and A,B are (n-1) bit magnitudes
CM303.23 4
OBSERVATIONS
CM303.23 5
Addition and subtraction of signed magnitude
numbers
Add Subtract magnitudes
S.No. Operation Magnitudes A>B A<B A=B
SUBTRACTION ADDITION
1 (+A)+(+B) +(A+B) - - -
2 (+A)+(-B) - +(A-B) -(B-A) +(A-B)
3 (-A)+(+B) - -(A-B) +(B-A)+(A-B)
4 (-A)+(-B) -(A+B) - - -
5 (+A)-(+B) - +(A-B) -(B-A) +(A-B)
6 (+A)-(-B) +(A+B) - - -
7 (-A)-(+B) -(A+B) - - -
8 (-A)-(-B) - -(A-B) +(B-A)+(A-B)
CM303.23 6
Addition and subtraction of signed magnitude
numbers
It can be observed that during addition
•If signs of AR and BR are same magnitudes A,B are added
and sign As of AR is retained
CM303.23 8
Addition and subtraction of signed magnitude
numbers
• It can be concluded for case of sign of result that
• if a sum is calculated between magnitudes the sign of AR (As)
is retained.
•if a difference is calculated between magnitudes the sign of
AR (As) is retained if A>B, and complemented if A<B
CM303.23 9
Summary
In this class , you have learnt …
CM303.23 10
Frequently asked questions
CM303.23 11
Quiz
CM303.23 12
2. If the signs are different, _________ can be
done in a fixed point subtraction of two
numbers.
b) Addition
c) Subtraction
d) Multiplication
e) None
CM303.23 13