Binary Addition

Cards (7)

  • Adding two binary numbers
    1. Carry numbers when doing addition
    2. 0 + 0 = 0
    3. 1 + 0 = 1
    4. 1 + 1 = 0, carry 1
    5. If carrying 1 into 1 + 1, write 1 and carry 1
  • Overflow occurs when the result exceeds the allocated memory space
  • When there is an overflow
    The answer given is wrong
  • Overflow error

    Occurs when the calculation result exceeds the allocated memory space
  • Computers have a limited amount of memory allocated for calculations
  • Overflow errors can occur in other parts of the course as well
  • Processors may have a status register with flags to track overflow