in Digital Logic
993 views
0 votes
0 votes
What is the difference when we say a zero flag has value 1' and when a zero flag has value 0 after addition of two numbers given in 2's complement?
in Digital Logic
993 views

1 Answer

3 votes
3 votes
if (zero flag == 1)
    //result is zero
else if(zero flag== 0)
    //RESULT is NON ZERO.

2 Comments

zero flag value is coming zero but correct answer has value for zero flag as 1'
0
0
then give the question..
0
0