I am having a bit of trouble understanding Carry Flag (CF) and Overflow Flag (OF).
Here are some sample problems I am working on:
1. 1011 1111 2. 1111 0111 3. 0111 1110 --> 0111 1110
+ 1011 0111 + 1101 1101 - 1011 0000 --> + 0100 1111
___________ ___________ ___________ + 1
0111 0110 1101 0100 ___________
1100 1110
- The carryout of the sign position is 1 and the carry in to the sign position is 0, so OF = 1?
- The carryout of the sign position is 1 and the carry in to the sign position is 1, so OF = 0?
- The carryout of the sign position is 0 and the carry in to the sign position is 1, so OF = 1?
I guess I am having trouble understanding an unsigned overflow and the appropriate CF value.