2.7k views
3 votes
Add the following UNSIGNED, byte-sized (8 bits) numbers

10010011
01101110

User Keydose
by
8.4k points

1 Answer

4 votes

Answer:

1 0 0 0 0 0 0 0 1

An overflow occurs if the result is stored in an 8-bit memory.

The actual result will be

0 0 0 0 0 0 0 1

Step-by-step explanation:

1 0 0 1 0 0 1 1

+ 0 1 1 0 1 1 1 0

1 0 0 0 0 0 0 0 1

Steps:

i. Arrange the numbers such that the most significant bits and least significant bits of each number are directly positioned one above the other.

ii. Add bitwise starting from the rightmost bit.

Result:

The result from adding these two numbers is

1 0 0 0 0 0 0 0 1

This is a 9-bit number, that means there is an overflow since the addition is done with 8 bits numbers and likely stored in an 8-bit storage. The leftmost bit (which is underlined above) is the overflow bit. Therefore the actual result will be

0 0 0 0 0 0 0 1

User Mathieu Schmitt
by
7.9k points

Related questions

asked Mar 9, 2024 142k views
Jayyyyy asked Mar 9, 2024
by Jayyyyy
7.9k points
1 answer
1 vote
142k views
asked Dec 19, 2024 46.7k views
ISmita asked Dec 19, 2024
by ISmita
9.2k points
1 answer
5 votes
46.7k views
asked Dec 16, 2016 210k views
Mads K asked Dec 16, 2016
by Mads K
8.0k points
1 answer
2 votes
210k views