answersLogoWhite

0


Best Answer

You can detect overflow if the result turns out to be negative (which is the same as checking to see if the sign bit is 1).

For example if you tried to add 5 and 6 in to 4-bit 2s complement, you would get

0101 + 0110 = 1011, which is a negative number since the sign bit (the 1 on the left) is a 1. This is an overflow.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you detect overflow when adding two numbers in 2s complement form?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How the human ear and other parts of the body receive or detect sound waves?

by our sense organ which depend upon the situation and overflow the nervous system.


Why negative numbers coming in Fibonacci series after 23 terms?

Negative numbers do not naturally occur in the Fibonacci sequence. The sequence begins with 0 and 1, and each subsequent term is obtained by summing the two preceding terms. If negative numbers seem to be appearing after 23 terms, it is likely due to a mistake or misinterpretation in the calculation or observation.


What is Hehner's test?

Hehner's test is used to detect the formaldehyde in milk by adding sulfuric acid containing the traces of ferric chloride.


What are cyclic redundancy check used for?

Cyclic redundancy check (CRC) is a type of error-detecting code used to ensure the integrity of data during transmission. It involves adding a CRC value to the data, which is then checked on the receiving end to detect any errors or corruption. CRC is commonly used in network protocols, data storage systems, and communication channels to detect and correct data transmission errors.


What architecture defines options for adding firmware and hardware to computers to detect low-level tampering before the operating system starts?

TPM


How could you detect the presence of chloride negative ion?

By adding silver nitrate to the compound. If a White precipitate is formed, then it means chloride ion is present.


Who made the first water thermometer?

Galileo Galilei invented the first water thermometer. He created it by adding droplets of alcohol in the water. This is so the liquid is less denser and can detect changes in temperature.


What rhymes inspect?

respect, detect, reflect, perfect


What do receptors detect?

they detect the feelings of pain cold and so on


What would a chemoreceptor allow you to do?

detect smell


Is detect a verb?

Yes, "detect" is a verb. It is an action word that describes the act of discovering or identifying something that is usually hidden or not easily seen.


What does p k reaction detect?

it detect igE