MYTUTOR SUBJECT ANSWERS

2128 views

Perform the 8-bit two's complement binary sum 17 - 24

The first step is to view the sum as an addition of a positive and a negative number, rather than a subtraction:

17 + (-24)

 

From there we can work out the binary equivalents of the 2 numbers:

          b7   b6   b6   b4   b3   b2   b1   b0

17      0     0     0     1     0     0     0     1

24      0     0     0     1     1     0     0     0

 

24 then has to be converted into it's equivalent negative number in two's complement. This is done in 2 steps:

1. Flip all the bits in the number

2. Peform binary addition of new number and 1.

 

So first we flip all the bits:

b7   b6   b6   b4   b3   b2   b1   b0

1     1     1     0     0     1     1     1

 

Then we add 1:

b7   b6   b6   b4   b3   b2   b1   b0

1     1     1     0     0     1     1     1

0     0     0     0     0     0     0     1

1     1     1     0     1     0     0     0

This gives us the two's complement representation of -24.

 

Then we simply perform the additon of 17 and -24 in binary:

b7   b6   b6   b4   b3   b2   b1   b0

0     0     0     1     0     0     0     1

1     1     1     0     1     0     0     0

1     1     1     1     1     0     0     1

 

Which, as expected, is the binary representation of -7 (you can check this by performing the same 2 stage method to convert the number back to positive 7, then back into decimal from there).

Pete H. A Level Maths tutor, A Level Electronics tutor, GCSE Maths tu...

2 years ago

Answered by Pete, an A Level Electronics tutor with MyTutor

Still stuck? Get one-to-one help from a personally interviewed subject specialist

2 SUBJECT SPECIALISTS

£20 /hr

Faisal A.

Degree: Computer Science (Doctorate) - Exeter University

Subjects offered: Electronics, Physics+ 4 more

Electronics
Physics
Maths
Design & Technology
Computing
Arabic

“Enjoying Teaching, helping others, sharing Knowledge. First year in PhD Computer Science, MSc Computer Networking, BEng Computer Systems Engineering.I am always ready to help you improve your grades.”

£30 /hr

Henri F.

Degree: Aerospace Engineering MEng (Masters) - Bristol University

Subjects offered: Electronics, Physics+ 4 more

Electronics
Physics
Maths
Further Mathematics
.STEP.
.PAT.

“About Me I am an Aerospace Engineer currently studying my MEng at the University of Bristol. I have always been fascinated with space, spacecraft and satellites. I intend on going on to complete a PhD specialising inSpacecraft Control...”

About the author

Pete H.

Currently unavailable: for new students

Degree: Electronic Engineering with Artificial Intelligence (Masters) - Southampton University

Subjects offered: Electronics, Physics+ 3 more

Electronics
Physics
Maths
ICT
Computing

“Electronics and Maths Tutor from University of Southampton, happy to try and make the pains of exams go away!”

You may also like...

Posts by Pete

Perform the 8-bit two's complement binary sum 17 - 24

What is the quotient rule and how is it applied?

Other A Level Electronics questions

What are the two types of doping in semiconductors to improve their conducting properties?

What is the Ohm Law?

What is KCL and KVL

Perform the 8-bit two's complement binary sum 17 - 24

View A Level Electronics tutors

Cookies:

We use cookies to improve our service. By continuing to use this website, we'll assume that you're OK with this. Dismiss

mtw:mercury1:status:ok