计算机组成mod2是什么意思,计算机组成原理 第2讲_数据表示.ppt

计算机组成原理 第2讲_数据表示

青岛理工大学计算机学院 Computer Organization 青岛理工大学 * * 计算机组成原理 Principles of Computer Organization 广义双语教学课程 09/skyclass25/ 青岛理工大学 校级精品课程 /ec/C84/ 第3章 运算方法和运算部件 数据表示 运算方法 运算部件 数据校验码 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. §3.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 § 3.2 带符号的二进制数据在计算机中的表示方法及加减法运算 数的定点表示与浮点表示 数值数据的小数点在计算机中并不数码化,而采用两种指定小数点位置的方法: 定点表示法(Fixed-Point Representation),即小数点的位置是固定不变的,这样表示的数称为定点数。 浮点表示法(Floating-Point Representation),即小数点的位置不是固定的,而是根据需要浮动的,这样表示的数称为浮点数。 The position of the binary point is needed t

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值