Answer to Question #260120 in Electrical Engineering for nit

Question #260120

Find the values of the flags(carry, sign, zero, overflow) of the processor status register for the given example of two 12 bit no’s in Hex (AB7 + DEF) and draw the circuit diagram also. 


1
Expert's answer
2021-11-04T00:41:20-0400

given two 8 bit, no's in Hex are: A7+EF

in order to add those two numbers first convert both of them to binary numbers:

The binary equivalent of A7 is:

1010 0111

and the Binary equivalent of EF is: 

1110 1111



the result is: 110010110

carry flag will be set to 1 as the result is having to carry forward

sign flag is set to 1 as the MSB(Most Significant Bit) is 1 so the result is negative

zero flags set to 0 as the result is not all zeros

the overflow flag is set to 1 as the result does not fit in the 8-bit operand

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS