Aspire Faculty ID #16623 · Topic: NIMCET 2008 · Just now
NIMCET 2008

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

Previous 10 Questions — NIMCET 2008

Nearest first

Next 10 Questions — NIMCET 2008

Ascending by ID
Ask Your Question or Put Your Review.

loading...