Binary and Hex.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Binary and Hex.ppt

Binary and Hex How to count like a computer Why Binary? The basic unit of storage in a computer is the bit (binary digit), which can have one of just two values: 0 or 1. This is easier to implement in hardware than a unit that can take on 10 different values. For instance, it can be represented by a transistor being off (0) or on (1). Alternatively, it can be a magnetic stripe that is magnetized with North in one direction (0) or the opposite (1). Binary also has a convenient and natural association with logical values of False (0) and True (1). Building on Binary Binary bits are grouped together to allow them to represent more information: A nybble is a group of 4 bits, e.g. 1011 A byte is a group of 8 bits, e.g.A word is a larger grouping: usually 32 bits. A halfword is half as many bits as a word, thus usually 16 bits. A doubleword is twice as many bits, usually 64 bits. However, computers have been designed with various word sizes, such as 36, 48, or 60 bits. Clearly, the number of possible combinations of a group of N bits is 2N = 2x2x2 … x2 (N 2s). Thus: A nybble can form 24=16 combinations A byte can form 28=256 combinations A 32-bit word can form 232=4,294,967,296 combinations Building on Binary Each combination of a group of bits can be assigned a symbolic meaning. For instance, bytes can be used to represent text by associating each byte value with a character. For example, the ISO-8859-1 character encoding (an extension of the older ASCII code) assigns the valueto mean a period (‘.’),to mean capital ‘A’, and so on. It is also possible to represent numbers using binary. The binary numbering system is like the decimal system, except that the only two digits used are 0 and 1, and digits are multiplied by powers of 2 instead of 10. Decimal and Binary Numbers Binary Numbers Binary and Hexadecimal Because binary numbers are rather unwieldy, programmers prefer to use a more compact way to represent them. Historically, octal

文档评论(0)

gshshxx + 关注
实名认证
内容提供者

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

1亿VIP精品文档

相关文档