- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
计算机导论ch03课件
Chapter 3;;;DECIMAL
AND
BINARY;Figure 3-1;Decimal system;Figure 3-2;Binary system;CONVERSION;Figure 3-3;Example 1;Convert the binary number 1001.101 to decimal.;Decimal to Binary Conversion---Integer part;Decimal to binary conversion---Fraction part;Example 2;HEXADECIMAL
NOTATION;A 4-bit pattern can be representedby a hexadecimal digit,and vice versa.;Table 2.2 Hexadecimal digits;Figure 2-10;Example 1;Example 2;Example 3;Example ?;Example ?;OCTAL
NOTATION;A 3-bit pattern can be representedby an octal digit, and vice versa.;Table 3.3 Octal digits;Figure 2-11;Example 4;Example 5;Example 6;Example ?;Example ?;INTEGER
REPRESENTATION;Figure 3-5;Figure 3-6;Table 3.1 Range of unsigned integers;Representation(表示法):
1.The number is changed to binary;
2.if the number of bits is less than N, 0s are added to the left of the binary number so that there is a total of N bits.;Example 3;Example 4;Table 3.2 Example of storing unsigned integers in
two different computers;Example 5;Application:
1.Counting;
2.Addressing.; We need 1 bit to represent the sign(0 for positive, 1 for negative).
The maximum positive value is one half the unsigned value.
;There are two 0s in sign-and-magnitude
representation: positive and negative.
In an 8-bit allocation:
+0 ? -0 ?Table 3.3 Range of sign-and-magnitude integers;Representation:(表示---从真值到原码)
1.The number is changed to binary;the sign is ignored
2.if the number of bits is less than N-1, 0s are added to the left of the binary number so that there is a total of N-1 bits.
3.If the number is positive, 0 is added to the left. If the number is negative, 1 is added to the left.;In sign-and-magnitude representation, the leftmost bit defines the sign of the number. If it is 0, the number is positive.If it is 1, the number is negative. ;Example 6;Example 7;Table 3.4 Example of storing sign-and-magnitude integers in two computers;Interpretation:(解释,翻译---从原码到真值)
1.Ignore the fir
文档评论(0)