Carry and Overflow question. Really simple.

  • Thread starter Thread starter DorumonSg
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
DorumonSg
Messages
61
Reaction score
0
Okay.

Let me get this right. A carry occurs when for example I add 2 8bits binary together and get 9 bits. The extra 1 bit is the carry right? (Means I get 1 extra bit from the original 2.)

So overflow means for example when I add 2 positive binary together, and I get a negative right? (Means the result is in the wrong sign.)

So what if a carry and overflow occurs together? Which is the overflow bit?

For example If I get the result 1011 when 1 is the carry bit and 011 is the result within range. Which is the overflow bit? 1 or 0? Is the overflow bit the carry bit? or must I take the MSB of the digit that is within ranger as the overflow bit?

Hope u understand my question?
 
Physics news on Phys.org