计算机组成原理第2讲数据表格示.ppt

  1. 1、本文档共27页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
青岛理工大学计算机学院 Computer Organization 青岛理工大学 * * 计算机组成原理 Principles of Computer Organization 广义双语教学课程 09/skyclass25/ 青岛理工大学 校级精品课程 /ec/C84/ 第6章 计算机的运算方法 数据表示 运算方法 运算部件 The data types found in the registers of digital computers may be classified as being one of the following categories: (1) numbers used in arithmetic computations, (2) letters of the alphabet used in data processing, and (3) other discrete symbols used for specific purposes. All types of data (plural of datum), except binary numbers, are represented in computer registers in binary-coded form. §6.1 无符号数和有符号数 计算机中的数据信息可划分成两大类:数值数据和非数值数据 数值数据表示数的大小,有确定的值。 非数值数据一般用来表示符号、文字或逻辑变量等,没有值。 数据Data 无符号数Unsigned Number 浮点数 原码表示法 反码表示法 补码表示法 移码表示法 数值数据Numbers 有符号数Signed Number 定点数 符号 文字 逻辑变量 非数值数据Non-numerical Data 声音 图象 视频 多媒体 无符号数和有符号数 无符号数是把所有的数位都用来表示数据的数值,通常作为正数处理。 n位无符号的纯整数,其表示范围为0 ~(2 n-1)。 Because of hardware limitations computers must represent everything with 1’s and 0’s, including the sign of a number. Positive integers, including zero, can be represented as unsigned numbers. However, to represent negative numbers, we need a notation for negative values. In ordinary arithmetic, a negative number is indicated by a minus sign and a positive number by a plus sign. It is customary to represent the sign with a bit placed in the leftmost position of the number. The convention is to make the sign bit equal to 0 for positive and to 1 for negative. 机器数和真值 一个数在机器中的表示形式叫做机器数,而把这个数本身叫做该机器数的真值。 例如和分别是真值 +1101011B 和 -10001B的机器数。 带符号的机器数的编码方法有原码表示法,反码表示法和补码表示法。此外,浮点数的阶码还可采用移码表示法。 真值 机器数 X [X]原 [X]反 [X]补 +0.1101011 0.1101011 0.1101011 0.1101011 -0.1101011 1.1101011 1.0010100 1.0010101 §6.1.2 有符号数 数的定点表示与浮点表示 数值数据的小数点在计算机中并不数码化,而采用两种指定小数点位置的方法: 定点表示法(Fixed-Point Representation),即小数点的位置是固定不变的,这样表示的数称为定点数。 浮点表示法(Floating-Point Representation),即小数点的位置不是固定的,而是根据需要浮动的,这样表示的数称为浮点数。 The position of the binary point is needed to represent fractions, integers,

文档评论(0)

勤劳的小厮 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档