Using the 8bit Unsigned binary number system perform the fol
Using the 8-bit, Unsigned binary number system, perform the following addition and subtraction problems. Clearly indicate how you checked for an overflow condition and the result of that check.
Solution
1 1 1 0 0 0 1 0
0 1 1 1 1 0 0 1 +
-----------------------
1 0 1 0 1 1 0 1 1
------------------------
Here number of bits in result is 9 bits. That 9th bit is 1. So overflow occurs
Overflow flag will be set to 1.
1 1 1 0 0 0 1 0
0 1 1 1 1 0 0 1 -
---------------------
0 1 1 0 1 0 0 1
--------------------
Here no 9th bit. Also result of subtraaction never overflow
