{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture13

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

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

ENSC150 Lecture 13 Agenda Signed Binary Numbers Subtractors (Cont.) 1/8 Lecture 13 Atousa Hajshirmohammadi, SFU

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

View Full Document
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
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

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

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
Ask a homework question - tutors are online