







































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








































Fall 2005 Department of Computer Science Kent State University
Objectives
Binary Representation of Numbers
31 30 29 28 .... .... .... .... .... 7654 3210 0 0 0 0 0000 0000 0000 0000 0000 0000 1011 Number Representation MIPS word Example: how to translate (^11) ten into binary? (^11) ten = 1 x 2 3
Signed-Magnitude
Biased
Two’s Complement Notation (^) Leading 0s mean +ve (^) Leading 1s mean -ve 1 0 0 0 0000 0000 0000 0000 0000 0111 0001 1 x –2^31 + 0 X2^30 + …1x2^6 + 1x2^5 + 1x2^4 + 0x2^3 + 0x2^2 +0x2^1 +1x2^0 = -2,147,483,648 + 64 + 32 + 16 + = -2,147,483, Compare with sign/magnitude representation for -
cf: Sign Magnitude/ Two’s Complement Notations Up Close Sign Magnitude Two's Complement
Some basic questions
Review
0000 0000 0000 0000 0000 0000 0000 0101 = + 5 0000 0000 0000 0000 0000 0000 0000 0001 = + 1
Overflow