Lecture13 - 1/8 ENSC150 Lecture 13 Agenda Signed Binary...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
ENSC150 Lecture 13 Agenda Signed Binary Numbers Subtractors (Cont.) 1/8 Lecture 13 Atousa Hajshirmohammadi, SFU
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Negative Numbers So far we have mostly dealt with positive (unsigned) numbers. The only time we considered negative numbers was when the result of a subtraction N - M was negative. But we didn’t show see how we can show a negative number using binary bits. There are different ways of showing a numbers and their sign (positive or negative) in binary format. Here we will see two ways: signed-magnitude representation signed-2’s complement representation 2/8 Lecture 13 Atousa Hajshirmohammadi, SFU
Background image of page 2
Signed-Magnitude Dedicates the left most bit to the “sign” of the number: “0” for Positive, “1” for Negative. Example: Show +9 in sign-magnitude representation, using 5 bits in total. Example: Show -10 in sign-magnitude representation, using 6 bits in total. With this approach, any addition or subtraction should be done with
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/16/2009 for the course ENSC 150 taught by Professor Dr.atousahashirmohammadi during the Spring '09 term at Simon Fraser.

Page1 / 8

Lecture13 - 1/8 ENSC150 Lecture 13 Agenda Signed Binary...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online