


































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!



































Semester II 2014/2015 9
conventions used to represent^ There are several alternative negative as well as positive integers Sign-magnitude representation is the simplest form that employs a sign bit
Drawbacks:
Because of these drawbacks, sign-magnitude representation is rarely used in implementing the integer portion of the ALU
2-
machines.
Semester II 2014/2015 13
patterns so as to look just like unsigned but actually represent negative numbers.
Semester II 2014/2015 15
Table 10. Alternative Representations for 4-Bit Integers
2-
+18 = 00010010 (twos complement) bitwise complement = 11101101
-18 = 11101110 (twos complement) bitwise complement = 00010001
-128 = 10000000 (twos complement) Bitwise complement = 01111111 Add 1 to LSB + 1 Result 10000000 So: -(-128) = -128 X Monitor MSB (sign bit) It should change during negation