Exercise before class Exercise before class : : ?? 、、 If If = = , , Write the -bit two Write the -bit two ’’ plement plement representation for the decimal number: representation for the decimal number: - - =( ) =( ) ?? 、、 Write the signed-magnitude, two Write the signed-magnitude, two ’’s- s- complement, and plement, and ones ’’-complement -complement representations for each of these representations for each of these decimal numbers decimal numbers , , use the bits as use the bits as least: +, -. least: +, -. ?? 、、 If If is the is the ’’ plement plement representation,what representation,what is its decimal is its decimal representation? representation? ?? 、、 Write the -bit signed-magnitude, Write the -bit signed-magnitude, two two ’’ plement, and ones plement, and ones ’’- - complement representations for the complement representations for the decimal numbers: - decimal numbers: - ?? 、已知: 、已知: = = 求其相反数的补码表示: 求其相反数的补码表示: - - =( =( ) ) ?? 、用最少位数写出、用最少位数写出- - 的二进制原码、的二进制原码、补码、反码表示。补码、反码表示。 , , , , ?? 、已知: 、已知: 是某个数的补码是某个数的补码表示,问其用十进制的表达为? 表示,问其用十进制的表达为? - - ?? 、分别以符号、分别以符号- -数值数制、反码、补码数值数制、反码、补码将将- - 表示为一个表示为一个 位数。位数。 ,, ,, Review of last class Review of last class ? Operations for unsigned numbers( Addition , Multiplication, subtraction ) ?? Representation of Negative Numbers Representation of Negative Numbers Signed-Magnitude Representation Signed-Magnitude Representation MSB as the MSB as the Sign bit Sign bit ( = plus, = minus) ( = plus, = minus) Zero? n-bit range ? When A Zero? n-bit range ? When A <=B, <=B, A-B= A-B= ? ? Complement Nu
二进制编码资料 来自淘豆网m.daumloan.com转载请标明出处.