Compute (-1110) - (2110) in 6 bit 2's complement binary using the fact that A-B = A + (-B). (|i.e. add the 2's complement of 2110 instead of subtracting). Indicate if carry or overflow occurs or does not occur.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Compute (-110) - (2110) in 6 bit 2's complement binary using the fact that A-B = A + (-B). ( i.e. add the 2's
complement of 2110 instead of subtracting). Indicate if carry or overflow occurs or does not occur.
Transcribed Image Text:Compute (-110) - (2110) in 6 bit 2's complement binary using the fact that A-B = A + (-B). ( i.e. add the 2's complement of 2110 instead of subtracting). Indicate if carry or overflow occurs or does not occur.
Expert Solution
Step 1

As per the question, 6-bit binary representation is being used for the given numbers:

  • Representation for 1110
    • 1110=001011 2
    • Corresponding 1's Complement(Replace 0s from 1s and 1s from 0s): 1101002 
    • Corresponding 2's Complement: 1101002+0000012=1101012
    • Hence -1110 is represented as 1101012
  • Representation for 2110:
    • 2110=010101 2
    • Corresponding 1's Complement(Replace 0s from 1s and 1s from 0s):101010 2
    • Corresponding 2's Complement: 101010 2+0000012=101011 2
    • Hence -2110 is represented as 1101012
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY