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?
🎥 Video solution / Text Solution of this question is given below:
11001100 + 10001111 = 1 01011011
Carry-out occurs → C = 1
Signed overflow occurs → V = 1
Result is not zero → Z = 0