386 views
0 votes
0 votes

Please refer to this GATE 2008-IT QUESTION- https://gateoverflow.in/3275/gate2008-it-15

My doubt is which of the following is used to decide the value of carry bit-

1, Carry bit=1, only if carry is generated from a3+b3 to bit position 4 ( consider- a7a6a5a4  a3a2a1a0

                                                                                                                                                                                     b7b6b5b4   b3b2b1b0 )

 

2. Carry bit=1, only if carry is generated anywhere while adding two bits.

3. Carry bit=1, only if Carryout =1

 

2 Answers

0 votes
0 votes

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

 

Carry bit is 1 because Carryout is 1

If carry generated by A3+B3 is 1 then auxiliary carry bit is 1  which they dint asked for.

If carry is generated in the middle and not in the MSBs then carry bit is not 1

Related questions

0 votes
0 votes
1 answer
1
iarnav asked Jul 15, 2018
362 views
Is there any formula to directly calculate the number of GRAY CODES possible?say like for 1 bit number of gray code possible = ...say like for 2 bits number of gray co...
0 votes
0 votes
0 answers
2
Aditi Thakur asked Aug 24, 2022
355 views
How formula of neutral function is derived? I get that it has equal number of max and min terms but didnt get derivation
0 votes
0 votes
0 answers
3
saurabh111 asked Sep 13, 2018
119 views
please explain Post’s Functional Completeness Theorem ??