# 2's complement addition with ZF/Carry/Overflow

Consider addition of two numbers when CPU uses $2's$ complement form: $$1\ 1\ 0\ 0\ 0\ 0\ 1\ 1\\0\ 1\ 0\ 0\ 1\ 1\ 0\ 0\\-------\\0\ 0\ 0\ 0\ 1\ 1\ 1\ 1\\-------$$

$$Carry\ = 1,\ Overflow = 0, \ Zero Flag = 0$$

My Reasoning:

• Zero Flag isn't set because the result isn't zero
• Overflow isn't set because Carry in = Carry out

However, the answer says that Zero Flag is set $(ZF = 1)$, Am I going wrong ?

Note:

• Got ZF/Carry/Overflow info from Here