MHB Adding Binary #s, (Sign and Magnitute Addition)

  • Thread starter Thread starter shamieh
  • Start date Start date
  • Tags Tags
    Addition Binary
Click For Summary
SUMMARY

This discussion focuses on the addition of eight-bit 2's complement binary numbers, specifically the operation of adding 00110110 and 01000101. The participants clarify the process of binary addition, including handling carry-outs, and emphasize the importance of understanding whether arithmetic overflow occurs. The correct addition results in 01111011, confirming that both numbers are positive and no overflow occurs. The discussion highlights the need for clear examples and step-by-step explanations for better comprehension of binary arithmetic.

PREREQUISITES
  • Understanding of binary number representation
  • Familiarity with 2's complement notation
  • Knowledge of binary addition rules
  • Ability to identify arithmetic overflow conditions
NEXT STEPS
  • Study binary addition techniques in depth
  • Learn about 2's complement representation and its applications
  • Explore examples of arithmetic overflow in binary operations
  • Practice converting between binary and decimal representations
USEFUL FOR

Students learning computer science fundamentals, educators teaching binary arithmetic, and anyone interested in digital logic design.

shamieh
Messages
538
Reaction score
0
Can someone explain to me step by step what's going on here? The book acts like a 3rd grader should be able to just look at the model and be able to decipher what's going on, but this is very confusing material.

Perform the following operations involving eight-bit 2's complement numbers and indicate whether arithmetic overflow occurs. Check your answers by converting to decimal sign and magnitude representation.

a) 00110110
+ 01000101
_____________

How do I solve this? I know that these are both positive because they start with 0.

I also know that;
0 + 0 = 00
0 + 1 = 01
1 + 0 = 01
1 + 1 = 10

so I know how to add those together BUT I don't understand how to add the "carry-outs" like if I have:

01
+01
____

would I say

1 + 1 = 0 , carry the 1. Then say 0 + 0 = 00 + 1 = ? 001? I'm just confused on how we evaluate the numbers with the carry outs for this particular problem. Also, suppose I have an eight bit number and one is unsigned or -? (Starts with a 1). How will the solving process then change? I can't find any good examples on google, and my book is disorganized and all over the place with terrible examples that don't clarify anything, or show any steps. If anyone can point me in the direction of a good explanation or can explain that would be great.
 
Technology news on Phys.org
shamieh said:
Can someone explain to me step by step what's going on here? The book acts like a 3rd grader should be able to just look at the model and be able to decipher what's going on, but this is very confusing material.

Perform the following operations involving eight-bit 2's complement numbers and indicate whether arithmetic overflow occurs. Check your answers by converting to decimal sign and magnitude representation.

a) 00110110
+ 01000101
_____________

How do I solve this? I know that these are both positive because they start with 0.

I also know that;
0 + 0 = 00
0 + 1 = 01
1 + 0 = 01
1 + 1 = 10

so I know how to add those together BUT I don't understand how to add the "carry-outs" like if I have:

01
+01
____

would I say

1 + 1 = 0 , carry the 1. Then say 0 + 0 = 00 + 1 = ? 001?

Close. Let me show you.
1+1=0, carry the 1.
0+0+1=1, no carry.

Code:
 01
+01
____
 10

a) 00110110
+ 01000101
_____________

0+1=1, no carry
1+0=1, no carry
1+1=1, carry 1
0+0+1=1, no carry

Code:
a)  00110110
  + 01000101
_____________
   ...1111

Perhaps you can finish it?
 

Similar threads

Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 15 ·
Replies
15
Views
3K
Replies
1
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 17 ·
Replies
17
Views
6K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K