Z=1 equal to zero
Z=0 not equal to 0
N=1 Negative
N=0 other wise
V=1 overflow occurred
V=0 other wise
C=1 Carry set
C=0 other wise
First perform binary addition
0 1 0 1 0 1 1
0 0 0 1 1 1 0
——————-
0 1 1 1 0 0 1
First we will find
Z=?
The result is 0 1 1 1 0 0 1
If all the bits are equal to 0, Z will set to 1
But in the result , there are some 1 are there
So
Z=0
N=?
The result is 0 1 1 1 0 0 1
This result is positive
But if result is negative N will be 1.
But result is positive so
N=0
V=?
We are adding two 7 bits
If the overflow occurs if it becomes 8 bits V will set to 1
The result is 0 1 1 1 0 0 1
No overflow occurs
So
V=0
C=?
This is carry bit
If it is carry set it will be 1
In the result 0 1 1 1 0 0 1
No carry is set
So
C=0