计算机科学十六进制数字的重要性 [英] Importance of Hexadecimal numbers in Computer Science

查看:393
本文介绍了计算机科学十六进制数字的重要性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在学习编程的8085,8086和microporcessors一般我们总是有十六进制再presentation。其确定二进制数字是电脑重要的。但如何将这些十六进制数是重要的?任何历史意义?

When studying programming 8085, 8086 and microporcessors in general we always have hexadecimal representation. Its ok that binary numbers are important in computers. But how these hexadecimal numbers are important? Any historical importance?

这将是很好,如果有人点了一些历史文件也。

It would be nice if someone point to some historical papers also.

编辑:

计算机如何处理十六进制数字?例如,当一个十六进制数作为输入提供的8085会发生什么?

How computers handle hexadecimal numbers? For example what happens in 8085 when a hexadecimal number is given as input?

推荐答案

十六进制有接近可视化映射到用于存储数字不是十进制做不同的字节。

Hexadecimal has a closer visual mapping to the various bytes used to store a number than decimal does.

例如,您可以从十六进制数告诉为0x12345678 ,最显著字节将持有 0×12 和至少显著字节将持有 0x78 。那十进制值, 305419896 ,告诉你什么。

For example, you can tell from the hexadecimal number 0x12345678 that the most significant byte will hold 0x12 and the least significant byte will hold 0x78. The decimal equivalent of that, 305419896, tells you nothing.

从历史的角度来看,这是值得一提的与使用不同数量的每个字位的比现代16位/ 32位计算机的某些旧电脑工作时的八进制是较常用。从八的维基百科的文章:

From a historical perspective, it's worth mentioning that octal was more commonly used when working with certain older computers that employed a different number of bits per word than modern 16/32-bit computers. From the Wikipedia article on octal:

当系统如PDP-8,采用ICL 1900和IBM大型机的12位,24位或36位字八路被广泛应用于计算机。八是二元这些机器的一个理想的简称,因为他们的字长被3除尽

Octal became widely used in computing when systems such as the PDP-8, ICL 1900 and IBM mainframes employed 12-bit, 24-bit or 36-bit words. Octal was an ideal abbreviation of binary for these machines because their word size is divisible by three

至于计算机如何处理十六进制数字,由计算机处理它时,用于输入原始基的数目是完全不相关的。计算机只是处理比特和字节。

As for how computers handle hexadecimal numbers, by the time the computer is dealing with it, the original base used to input the number is completely irrelevant. The computer is just dealing with bits and bytes.

这篇关于计算机科学十六进制数字的重要性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆