<4D6963726F736F667420506F776572506F696E74202D20B5DAD2BBD5C228B4F2D3A1B0E6292E707074205BBCE6C8DDC4A3CABD5D>



Similar documents
Microsoft PowerPoint - STU_EC_Ch02.ppt

SuperMap 系列产品介绍

Microsoft PowerPoint - STU_EC_Ch08.ppt

<4D F736F F F696E74202D20BCC6A6ECA874B2CEBEC9BDD7C1BFB871B2C4A440B3B9>

Microsoft PowerPoint - STU_EC_Ch04.ppt

BC04 Module_antenna__ doc

Paperless Printer, Job 17

東莞工商總會劉百樂中學

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

ENGG1410-F Tutorial 6

東吳大學

國家圖書館典藏電子全文

中國的科學與中國的公民:大陸研究在台灣的困境\\

Microsoft PowerPoint - ATF2015.ppt [相容模式]

(baking powder) 1 ( ) ( ) 1 10g g (two level design, D-optimal) 32 1/2 fraction Two Level Fractional Factorial Design D-Optimal D

<4D F736F F D205F FB942A5CEA668B443C5E9BB73A740B5D8A4E5B8C9A552B1D0A7F75FA6BFB1A4ACFC2E646F63>

<4D F736F F D203033BDD7A16DA576B04FA145A4ADABD2A5BBACF6A16EADBAB6C0ABD2A4A7B74EB8712E646F63>

Microsoft PowerPoint _代工實例-1

18世纪东亚儒教思想的地形

論 文 摘 要 本 文 乃 係 兩 岸 稅 務 爭 訟 制 度 之 研 究, 蓋 稅 務 爭 訟 在 行 訴 訟 中 一 直 占 有 相 當 高 的 比 例, 惟 其 勝 訴 率 一 直 偏 低, 民 87 年 10 月 28 日 行 訴 訟 法 經 幅 修 正 後, 審 級 部 分 由 一 級 一

天 主 教 輔 仁 大 學 社 會 學 系 學 士 論 文 小 別 勝 新 婚? 久 別 要 離 婚? 影 響 遠 距 家 庭 婚 姻 感 情 因 素 之 探 討 Separate marital relations are getting better or getting worse? -Exp

致 谢 本 人 自 2008 年 6 月 从 上 海 外 国 语 大 学 毕 业 之 后, 于 2010 年 3 月 再 次 进 入 上 外, 非 常 有 幸 成 为 汉 语 国 际 教 育 专 业 的 研 究 生 回 顾 三 年 以 来 的 学 习 和 生 活, 顿 时 感 觉 这 段 时 间 也

Microsoft Word - xb 牛尚鹏.doc

Microsoft Word - 論文封面 修.doc

Microsoft Word - Final Exam Review Packet.docx

Microsoft Word - ChineseSATII .doc

标题

A Community Guide to Environmental Health

untitled


2/80 2

2008 Nankai Business Review 61

\\Lhh\07-02\黑白\内页黑白1-16.p

1

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

untitled



<4D F736F F D20BCFAA755AAA92DABC8AE61AAE1A5ACB2A3B77EB56FAE69A4A7ACE3A873A147A548B8EAB7BDB0F2C2A6AABAC65BC2492E646F63>

Untitled-3

PowerPoint Presentation

* RRB *


Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl

中 國 學 研 究 期 刊 泰 國 農 業 大 學 บ นทอนเช นก น และส งผลก บการด ดแปลงจากวรรณกรรมมาเป นบทภาพยนตร และบทละคร โทรท ศน ด วยเช นก น จากการเคารพวรรณกรรมต นฉบ บเป นหล

Вера Ивановна Засулич

<4D F736F F D D312DC2B2B4C2AB47A16DC5AAAED1B0F3B5AAB0DDA144A7B5B867A16EB2A4B1B4A277A548AED1A4A4BEC7A5CDB0DDC344ACB0A8D2>

國立中山大學學位論文典藏

第1章 簡介

國家圖書館典藏電子全文

Microsoft Word - Book9

影響新產品開發成效之造型要素探討


硕 士 学 位 论 文 论 文 题 目 : 北 岛 诗 歌 创 作 的 双 重 困 境 专 业 名 称 : 中 国 现 当 代 文 学 研 究 方 向 : 中 国 新 诗 研 究 论 文 作 者 : 奚 荣 荣 指 导 老 师 : 姜 玉 琴 2014 年 12 月

spss.doc

Abstract There arouses a fever pursuing the position of being a civil servant in China recently and the phenomenon of thousands of people running to a

Shanghai International Studies University THE STUDY AND PRACTICE OF SITUATIONAL LANGUAGE TEACHING OF ADVERB AT BEGINNING AND INTERMEDIATE LEVEL A Thes


13-4-Cover-1

,, (, 1996 ;, 1999),,,, :,,?,,,, (, ), (, ),, :,, ;,,, (,1994 :33-34),, ;, (,1991 ;,1992), 166

地質調査研究報告/Bulletin of the Geological Survey of Japan

OncidiumGower Ramsey ) 2 1(CK1) 2(CK2) 1(T1) 2(T2) ( ) CK1 43 (A 44.2 ) CK2 66 (A 48.5 ) T1 40 (

<4D F736F F D20B2F8A74AA4AF5FA578C657A175BCC6A6ECB6D7AC79A176BB50A46AB3B0A175A454BAF4A658A440A176AC46B5A6A641B1B4>

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt

WTO

Microsoft Word doc

考試學刊第10期-內文.indd

PowerPoint Presentation

~m~li~* ~ ± ~ 1Jz. IDfU Y:.. a~~.~.oor.~~b~.~fi~~p A Study of Developing a Mobile APP for Supporting the Chinese Medicine Pulse Diagnosis Based on Pul

Microsoft Word - 執行期間與消滅時效期末報告_公開.doc

<4D F736F F D D3620B3AFB24DA8712DB747AFE0AC46A9B2BB50A4BDB0C8ADDBB27AA4A7B1B4B0512E646F63>

從篤加有二「區」談當代平埔文化復振現相

目录 CONTENTS

Knowledge and its Place in Nature by Hilary Kornblith

<4D F736F F D20B5DAC8FDB7BDBE57C9CFD6A7B8B6D6AEB7A8C2C98696EE7DCCBDBEBF2E646F63>

國立中山大學學位論文典藏

small fire indd

穨6街舞對抗中正紀念堂_林伯勳張金鶚_.PDF

A Study on JI Xiaolan s ( ) Life, Couplets and Theories of Couplets 紀 曉 嵐 ( ) 生 平 資 料 斠 正 及 對 聯 聯 論 研 究 LI Ha 李 夏 THE UNIVER

快乐蜂(Jollibee)快餐连锁店 的国际扩张历程

chr82-06DuanW.hwp

2005 4,,,,,,,,,,,,, (2001 ) ;() ( 1997 ) ; ( 1997 ) ; () (1996 ) ;,: ( 1995 ) ; (1995 ),,,, (J13) (J9) (J10), (J19) (J17) 58

I

untitled

師 大 學 報 第 三 十 期 文 的 時 候, 發 現 文 言 多 用 單 音 詞, 白 話 多 用 夜 音 詞 ; 語 譯 文 言 的 最 好 方 法, 就 是 將 單 音 詞 改 譯 成 夜 音 詞 這 也 就 是 說 : 我 們 的 語 言 已 經 由 單 音 節 語 走 向 接 音 節 語

2006 3,,,,,, :, : ( [1996 ]1998 :396) : ( [1998 ]1999 :274), :,,,,,,,,,,,,,,,,, ([1962 ]1993 : ),,( ),,,, concordiadiscors ( ) 2, 2,,,, ( ),,,,

<4D F736F F D20312E5FA473AEFCB867AED5AA605FBB50B04BCFC8AABAAFABB8DCACE3A8732E646F63>

1.第二卷第二期p1


2015年4月11日雅思阅读预测机经(新东方版)

<4D F736F F D203338B4C12D42A448A4E5C3C0B34EC3FE2DAB65ABE1>

1. 請 先 檢 查 包 裝 內 容 物 AC750 多 模 式 無 線 分 享 器 安 裝 指 南 安 裝 指 南 CD 光 碟 BR-6208AC 電 源 供 應 器 網 路 線 2. 將 設 備 接 上 電 源, 即 可 使 用 智 慧 型 無 線 裝 置 進 行 設 定 A. 接 上 電 源

2015 Chinese FL Written examination


A VALIDATION STUDY OF THE ACHIEVEMENT TEST OF TEACHING CHINESE AS THE SECOND LANGUAGE by Chen Wei A Thesis Submitted to the Graduate School and Colleg

UDC The Policy Risk and Prevention in Chinese Securities Market

156 ( ) [2] [ 3 ] [ 4 ] [5] [6] 1747 [ 7 ] ( ) [ 8 ] [2] 12 [3] [4] [5] [6] [7] [

Transcription:

Homeworks ( 第 三 版 ):.4 (,, 3).5 (, 3).6. (, 3, 5). (, 4).4.6.7 (,3).9 (, 3, 5)

Chapter. Number systems and codes 第 一 章. 数 制 与 编 码

. Overview 概 述 Information is of digital forms in a digital system, and thus it is necessary to have ways to represent information in digital forms. 数 字 系 统 中 通 过 数 字 信 号 的 形 式 存 储 和 处 理 信 息 因 此, 有 必 要 学 习 信 息 的 数 字 表 示 方 法 Number conversion 数 制 变 换 Content 本 章 内 容 :. Number systems and their conversions 数 制 及 其 相 互 转 换. BCD and Grey codes BCD 和 格 雷 码 3. Signed binaries 带 符 号 的 二 进 制 数 Extended learning 后 续 课 程 : Information theory and coding 信 息 论 与 编 码 3

. Overview 概 述 Information is of digital forms in a digital system, and thus it is necessary to have ways to represent information in digital forms. 数 字 系 统 中 通 过 数 字 信 号 的 形 式 存 储 和 处 理 信 息 因 此, 有 必 要 学 习 信 息 的 数 字 表 示 方 法 Number conversion 数 制 变 换 Content 本 章 内 容 :. Number systems and their conversions 数 制 及 其 相 互 转 换. BCD and Grey codes BCD 和 格 雷 码 3. Signed binaries 带 符 号 的 二 进 制 数 Extended learning 后 续 课 程 : Information theory and coding 信 息 论 与 编 码 Therefore, in a general sense, information is "Knowledge communicated or received concerning a particular fact or circumstance", or rather, information is an answer to a question. Information cannot be predicted and resolves uncertainty. 4

. Number systems 数 制. A number system consists of an ordered set of digits, with relationship defined for addition, substraction, multiplication, and division. 定 义 了 加 减 乘 除 关 系, 并 按 照 一 定 顺 序 进 行 排 列 的 数 字 集 合 称 为 数 制. Instead of decimal used in ordinary life, binary, octal and hexadecimal are more commonly used in digital systems. 同 生 活 中 常 用 十 进 制 数 不 同, 数 字 系 统 中 更 常 用 的 数 制 是 二 进 制 八 进 制 和 十 六 进 制 3. The radix (r), or base, of the number system is the total number of digits allowed. 数 字 的 总 个 数 称 为 数 制 的 基 数 : Number systems decimal (r =) binary (r =) octal (r =8) hexadecimal (r =6) 5

. Decimal 十 进 制 Ten symbols in decimal system:,,, 3, 4, 5, 6, 7, 8, 9. The radix is. 十 进 制 包 含 十 个 数 码, 基 数 为 ( 逢 十 进 一 ) Digits are located at different positions, the values of which are different. The value of a position is defined as the weight. 权 : 表 示 该 位 置 的 大 小 The weight of each position in the decimal system is a power of radix 十 进 制 中 每 一 个 位 置 对 应 的 权 都 是 其 基 数 的 幂 A number can be written in polynomial ( 多 项 式 ) form: (.3) = 94 + 9 + 4 + 3 + 6

In general, any number N of radix r can be written in the polynomial form ( 按 权 展 开 ): Integer digits Radix point Fractional digits N = a,..., a, a a,..., a. n m n -- number of integer digits 整 数 部 分 的 位 数 m -- number of fractional digits 小 数 部 分 的 位 数 a r i i i -- The digit 第 i 个 数 字 th i th n = i= m -- weight of the digit 第 i 个 数 字 的 权 值 ar i i 7

. Binary 二 进 制 Two symbols in a binary system:,. The radix is. 二 进 制 包 含 两 个 数 字, 基 数 为 ( 逢 二 进 一 ) The weights in the binary system are powers of radix 二 进 制 权 值 都 是 基 数 的 幂 A number can be written in polynomial ( 多 项 式 ) form: (. ) = = 4 6.75 + 3 + + + + + 8

Table. Decimal vs. Binary Decimal 3 4 5 6 7 8 9 3 4 5 6 Binary 3 3 4 4 n = (...) n zeros (...) n = n ones 9

The advantage of using binary in digital systems 数 字 系 统 中 使 用 二 进 制 的 优 点. Easy to describe with hardware. 便 于 硬 件 描 述 Switch 开 关 Lamp 灯 泡 Diode/Transistor 二 极 管 / 晶 体 管 Impulse 脉 冲 Voltage 电 压 On On Conduct Exist High Off Off Cut off Vanish Low. Nice properties of identifiability and anti-interference. 易 于 辨 识 抗 干 扰 能 力 强

However, the binary system uses too many bits to represent a large number, and thus may be sometimes inconvienence to use. 然 而, 二 进 制 表 示 大 数 时 占 用 位 数 过 多, 因 此 在 某 些 场 合 下 不 便 使 用 65: 4 bits in decimal, but bits in binary () The larger the number is, the more obvious the disadvantage is. So octal and hexadecimal systems are also used. 因 此, 八 进 制 和 十 六 进 制 也 常 常 使 用

3. Octal 八 进 制 Eight symbols in an octal system:,,, 3, 4, 5, 6, 7. The radix is 8. 八 进 制 包 含 八 个 数 码, 基 数 为 8( 逢 八 进 一 ) The weights in the octal system are powers of radix 8 八 进 制 权 值 为 基 数 8 的 幂 A number can be written in polynomial ( 多 项 式 ) form: ( 36.47) 8 = 3 8 + 8 + 6 8 + 4 8 + = 9 + 6 + 6 +.5 +. 7 8 = (4.6)

3 Table. Octal vs. Decimal and Binary 3 4 5 6 7 8 9 3 4 5 6 Decimal Binary Octal 3 4 5 6 7 3 4 5 6 7

4. Hexadecimal 十 六 进 制 Sixteen symbols in a hexadecimal system:,,, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. The radix is 6. 十 六 进 制 包 含 十 六 个 数 码, 基 数 为 6( 逢 十 六 进 一 ) The weights in the hexadecimal system are powers of radix 6. 十 六 进 制 权 值 为 基 数 6 的 幂 A number can be written in polynomial ( 多 项 式 ) form: ( 3CE.4B) 6 = 3 6 + 6 + 4 6 + 4 6 + 6 = 768 + 9 + 4 +.5 +.43 = (974.93) 4

5 Table.3 Hexadecimal vs. Decimal, Binary, and Octal 3 4 5 6 7 8 9 3 4 5 6 Decimal Binary Octal 3 4 5 6 7 3 4 5 6 7 Hexadecimal 3 4 5 6 7 8 9 A B C D E F

5. γ system 任 意 进 制 γ symbols:,,, γ-. The radix is γ. 包 含 γ 个 数 码, 基 数 为 γ The weights in the γ system are powers of radix γ. 任 意 进 制 权 值 为 其 基 数 的 幂 A number can be written in polynomial ( 多 项 式 ) form: (345.6) = 3 7 + 4 7 + 5 7 + 6 7 + 7 7 6

.3 Base conversions 数 制 间 转 换. Convert γ system to decimal 任 意 进 制 向 十 进 制 转 换 : Write the number in γ system in polynomial form 按 权 展 开 即 可 : (.) = 5 4 3 ( + + + + ) = (57.5). Convert decimal to γ system 十 进 制 向 任 意 进 制 转 换 : ) For the integer part of a number, divide it by the radix until the quotient is, put the remainders in reversed order; 整 数 部 分, 除 以 γ 取 余, 直 到 商 为 为 止, 余 数 按 逆 序 排 列 ) For the fraction part of a number, multiply radix and put the integer in order. 小 数 部 分, 乘 γ 取 整, 整 数 部 分 按 顺 序 排 列 7

An example: Convert (39.) to binary ) 整 数 部 分, 除 γ 取 余, 直 到 商 为 为 止, 逆 序 Integer: 39 remainder 9.. 9.. 4.... LSB (least significant bit) In reversed order 逆 序.. MSB (most significant bit) ( 39) ( ) 8

) 小 数 部 分, 乘 γ 取 整, 顺 序 排 列 MSB In order 顺 序 integer.... x.4 x.8 x.6.6 x. ( 39.) = (.) (.) (.) 9

Decimal to octal 十 进 制 向 八 进 制 转 换 Convert ( 79.46) to octal: 8 79..3 8..6 8.. Radix point 3 5.46 8 3.68.68 8 5.44 ( 79.46) = (63.35 ) 8

Decimal to hexadecimal 十 进 制 向 十 六 进 制 转 换 Convert ( 78.46) to hexadecimal 6 6 78 B 7..46 6 76 46 7.36 ( 78.46) = (B.7 ) 6

3. Conversions between Binary and Octal 二 进 制 和 八 进 制 的 互 相 转 换 3 8 = One bit of octal can be expressed by three bits of binary. Method: Group the digits in groups of 3 digits in both directions from the radix point. 以 小 数 点 为 界 向 两 侧 划 分, 三 位 一 组, 不 够 添 (. ) = 5 6 3 5 4 (53.6) 8 = (. (563.54) 8 ) Note the last : ---4 the first : --- The zeros at both ends could be ignored.

4. Conversions between Binary and Hexadecimal 4 6 = One bit of hexadecimal can be expressed by four bits of binary Method: Group the digits in groups of 4 digits in both directions from the radix point. 以 小 数 点 为 界 向 两 侧 划 分, 四 位 一 组, 不 够 添 (. ) = (5ED.BA) 6 5 E D B A (3D5E.7A8) 6 = (. ) 3

.4 Codes 码 代 码 是 指 用 于 表 示 信 息 的 一 组 符 号, 通 常 在 计 算 机 以 及 其 他 数 字 系 统 中, 用 于 不 同 种 类 信 息 的 处 理 存 储 和 交 换 MSB integer In order. 顺 序.. (.) =(. ).. x.4 x.8 x.6.6 x. Many non-integral values may have infinite digits in binary. 很 多 有 限 小 数 的 二 进 制 形 式 包 含 无 限 多 个 数 字 Binary coded decimal (BCD). 二 - 十 进 制 代 码 4

.4. BCD Code 二 - 十 进 制 代 码 : The BCD code: 4 bits of binary are used to represent bit of decimal. 用 四 位 二 进 制 数 表 示 一 位 十 进 制 数 ; BCD is a weighted code. BCD 码 为 加 权 码 ; 5

Table.4 Hexadecimal vs. Decimal, Binary, and Octal Decimal 3 4 5 6 7 8 9 3 4 5 6 Binary Octal 3 4 5 6 7 3 4 5 6 7 Hexadecimal 3 4 5 6 7 8 9 A B C D E F 84BCD 6

It is important to note that ~ are forbidden codes in 84BCD code system. 需 要 注 意 的 是,~ 是 84BCD 码 的 禁 用 码 The subscript of 84BCD must be written. 用 84BCD 码 表 示 数 的 时 候, 角 标 一 定 不 能 漏 写 (. ) 84BCD Practice 练 习 : (85.67) = (. ) 84BCD (. ) 84BCD = ( 769.83 ) 7

The conversion can be done directly between decimal and 84BCD code. 十 进 制 和 84BCD 码 可 直 接 转 换 But binary can be not converted to BCD code directly. We need to convert it to decimal first. 二 进 制 和 84BCD 码 不 可 直 接 转 换, 需 要 首 先 将 其 转 换 为 十 进 制 decimal binary 84BCD ( ) 84BCD = ( 8) ( ) = ( 4 ) = ( ) 84BCD 8

.4. Gray code 格 雷 码 : 84 BCD The ideal case: Four bits switch simutaneously 理 想 情 况 : 四 比 特 同 时 变 化 In practice: Simutaneous switch of all the four bits is hard to realize 实 际 中 : 很 难 实 现 所 有 四 比 特 的 同 时 翻 转 Gray code: only one bit switches between two adjacent numbers 格 雷 码 : 相 邻 的 两 个 数 之 间 仅 有 一 位 不 同 9

Gray code 格 雷 码 : Unweighted code. 不 是 加 权 码 ; Only one bit changes between adjacent numbers. 相 邻 数 之 间 仅 有 一 位 不 同 Cyclic code. 循 环 码 Decimal Binary 3 4 5 6 7 Gray code Decimal Binary Gray code 8 9 3 4 5 3

.5 Signed binary numbers 带 符 号 的 二 进 制 数 We use positive (+) and negative sign (-) in decimal system. There are some methods for indicating the sign in binary system. 在 十 进 制 中 我 们 采 用 (+) 和 (-) 表 示 正 负, 在 二 进 制 中 我 们 可 采 用 如 下 方 法 表 示 数 的 正 负 Sign-magnitude ( 原 码 ) Ones complement ( 反 码 ) Two s complement ( 补 码 ) Shift codes ( 偏 移 码 ) 3

.5. Sign-magnitude 原 码 : The most significant bit represent the sign ( for positive, and for negative). 原 码 的 最 高 位 表 示 数 的 正 负 ( 表 示 正 数, 表 示 负 数 ); The rest is the binary representation of the magnitude. 除 了 符 号 位 之 外 的 其 余 部 分 为 数 绝 对 值 的 二 进 制 形 式 ; + 45-37 + + 45-37 + 8 3

.5. Ones complement 反 码 : The most significant bit represent the sign ( for positive, and for negative). 反 码 的 最 高 位 表 示 数 的 正 负 ( 表 示 正 数, 表 示 负 数 ); The ones complement of a positive number is equal to its signmagnitude. 正 数 的 反 码 与 其 原 码 相 等 ; The ones complement of a negative number is obtained by applying bitwise NOT to its positive counterpart. 负 数 的 反 码 通 过 对 正 数 逐 位 取 反 ( 变 成, 变 成 ) 获 得 原 码 反 码 + 45-37 + 37 逐 位 求 反 -37 33

.5. Ones complement 反 码 : Ones Complement Ones Complement - N - +37-37 = + 因 此, 负 数 的 反 码 表 示 可 以 看 作 是 由 N -(Ones) 减 去 相 应 正 数 而 获 得 (Complement) N: 包 含 符 号 位 在 内 的 总 比 特 数 + + + 45-37 + 8 反 码 可 以 用 加 法 实 现 减 法 运 算, 但 需 要 将 进 位 重 新 加 一 遍 ; 的 表 示 方 法 不 唯 一 :(+),(-) 34

.5.3 Two complement 补 码 : The most significant bit represent the sign ( for positive, and for negative). 最 高 位 表 示 数 的 正 负 ( 表 示 正 数, 表 示 负 数 ); The two s complement of a positive number is equal to its signmagnitude and ones complement. 正 数 的 补 码 原 码 反 码 相 等 ; The two s complement of a negative number is obtained by adding one to its ones complement. 负 数 的 补 码 等 于 其 反 码 加 ; The two s complement of a negative number is also obtained by inversing its positive counterpart bitwisely from the leftmost bit to the first from the right. 对 正 数 原 码 从 左 边 第 一 位 依 次 取 反, 直 至 从 右 边 起 第 一 个 为 止 ( 不 包 含 该 位 ), 也 可 获 得 相 应 负 数 的 补 码 35

.5.3 Two complement 补 码 : 原 码 反 码 + 45-36 Power of Two Complement Two s Complement + - N - 44 补 码 + 36 = +44 + - 36 因 此, 负 数 的 补 码 表 示 可 以 看 作 是 由 N (Power of two) 减 去 相 应 正 数 而 获 得 (Complement) N: 包 含 符 号 位 在 内 的 总 比 特 数 36

.5.3 Two s complement 补 码 : + 45 + - 36 + 9 = + + 9-7 - 8 = 补 码 可 以 用 加 法 实 现 减 法 运 算 37

.5.4 Shift Codes 偏 移 码 : - Shift codes: invert the sign bit of s complement. 偏 移 码 的 构 成 : 补 码 的 符 号 位 取 反 Why the name Shift Codes? To be continued in Chapter 9 38

.6 Summary 总 结 Digital represations of numerical numbers 用 数 字 表 示 数 学 量 的 方 法. 不 同 数 制 下 的 直 接 表 示 二 进 制 八 进 制 十 六 进 制 数 制 相 互 转 换 BCD 码 格 雷 码. 编 码 表 示 BCD 码 同 十 进 制 和 二 进 制 的 相 互 转 换 3. 带 符 号 的 二 进 制 数 原 码 反 码 补 码 偏 移 码 39