Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



A CPU has an arithmetic unit that adds bytes and then sets its V, C and Z flag as follows:
V-bit is set if arithmetic overflow occurs
C-bit is set if carry-out is generated from the most significant bit
Z-bit is set if the result is zero

What are the values of V, C and Z flag bits respectively after the 8-bit bytes
1100 1100 and 1000 1111 are added?






Solution

11001100 + 10001111 = 1 01011011
Carry-out occurs → C = 1
Signed overflow occurs → V = 1
Result is not zero → Z = 0


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...