Subtraction using 8-bit binary 1's complement

  • Thread starter Thread starter Duderonimous
  • Start date Start date
  • Tags Tags
    Binary
Click For Summary
SUMMARY

The forum discussion focuses on performing subtraction using 8-bit binary in 1's complement. The calculations for (22-59)10 and (-11-64)10 were presented, demonstrating the conversion of decimal numbers to binary, taking the 1's complement of negative numbers, and adding the results. The final answers were confirmed as (1101 1010)2 for the first calculation and (1011 0100) for the second. The user sought validation of their approach and results, which were accurate based on the outlined steps.

PREREQUISITES
  • Understanding of 8-bit binary representation
  • Knowledge of 1's complement arithmetic
  • Ability to convert decimal numbers to binary
  • Familiarity with binary addition and carry handling
NEXT STEPS
  • Study the process of converting decimal numbers to binary
  • Learn about 2's complement and its applications in binary arithmetic
  • Explore binary subtraction techniques beyond 1's complement
  • Practice additional examples of binary arithmetic operations
USEFUL FOR

Students studying computer science, particularly those focusing on digital logic design and binary arithmetic, as well as educators teaching binary number systems.

Duderonimous
Messages
63
Reaction score
1

Homework Statement


Perform the indicated subtraction using 8-bit binary in 1's complement:

(22-59)10

(-11-64)10

Homework Equations


i. Convert the numbers from decimal to binary
ii. Take the ones complement of binary representation of any negative numbers
iii. Add the two numbers together add 1 if there is a carryout. Leave as is if no carry out.

The Attempt at a Solution


(+22)10 →→ (0001 0110)2 →→ (0001 0110)2
+(-59)10 → +1'sC(0011 1011)2 → +(1100 0100)2
Answer: (1101 1010)2

(-11) →→1'sC(0000 1011)→1111 0100
+(-64) →+1'sC(0100 0000) →+1011 1111
Answer: 1011 0100

Is this correct? Thanks. I just get the positive value by taking the 1's Comp of my answer right? I kind of figured it out as I wrote this. But if someone can confirm that would be nice thanks.
 
Last edited:
Physics news on Phys.org
I only checked the first one and it looks fine.
 
  • Like
Likes   Reactions: Duderonimous
Thanks
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
13K
  • · Replies 2 ·
Replies
2
Views
11K