1 / 6

Radix-Complement Representation of Signed Numbers (esp. Two’s-Complement Representation)

Radix-Complement Representation of Signed Numbers (esp. Two’s-Complement Representation). Signed magnitude representation was easy However, it required sign and magnitude checks when doing arithmetic to determine whether to do + or – operation.

marly
Download Presentation

Radix-Complement Representation of Signed Numbers (esp. Two’s-Complement Representation)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Radix-Complement Representation of Signed Numbers (esp. Two’s-Complement Representation) • Signed magnitude representation was easy • However, it required sign and magnitude checks when doing arithmetic to determine whether to do + or – operation. • In the radix-complement representation, a number is negated by subtracting it from • This is more difficult than negating signed magnitude numbers. • However, addition/subtraction is easy, like with unsigned numbers. • Thus the radix-complement rep is more popular than signed magnitude.

  2. Two’s Comp Addition Much like unsigned addition!

  3. Two’s Comp Overflow Detection • Overflow occurs iff • the addends’ signs are the same, and, • the sign bit of result is different

  4. Multiplication of (unsigned) Binary Numbers

More Related