CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

A processor that has carry, overflow and sign flag bits as part of its program status word (PSW) performs addition of the following two 2's complement numbers 01001101 and 11101001. After the execution of this addition operation, the status of the carry, overflow and sign flags, respectively will be:

A
0, 1, 0
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
1, 1, 0
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
1, 0, 1
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
1, 0, 0
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A 0, 1, 0
1 1 1
Number 1: 0 1 0 0 1 1 0 1
Number 2: 1 1 1 0 1 0 0 1
______________
Add 1 0 0 1 1 0 1 1 0
_______________

Since, CoutCin=0

Hence no overflow.

Carry present i.e. bits comes out from MSB.

MSB of addition is 0. So positive number.

So, output will be carry = 1, overflow =0, sign = 0

flag
Suggest Corrections
thumbs-up
2
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Sum of Coefficients of All Terms
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon