This is a CPU Flag that indicates a addition/subtraction result overflows the wordsize.

Logic

  • For unsigned numbers, indicates a overflow
  • For signed numbers, overflow if and only if and have the same sign, but has the opposite sign
  • For signed numbers, overflows if and only if and have a different sign and has the same sign as