Re: what is Hex?

  • From: "Dale Leavens" <dleavens@xxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 20 Feb 2008 16:00:42 -0500

You use two octal numbers, one for the upper and one for the lower nibble of a byte. Frankly I have never really used octal notation for anything serious. There may well be other uses. ----- Original Message ----- From: <yarringt@xxxxxxxxxxxxx>

To: <programmingblind@xxxxxxxxxxxxx>
Sent: Wednesday, February 20, 2008 1:37 PM
Subject: Re: what is Hex?


I'm confused. I get using a hex number to represent the upper and lower nibble of a byte, but how could you use an octal number to represent the upper and lower nibble, or a 4-bit register value? -Debbie

Dale Leavens wrote:
Close,

Hex (hexadecimal) is base 16 and it is used because of the architecture of computers where a byte is made up of 8 bits. Rather than represent the position of 1s and 0s as an 8 bit binary number you can represent the contents of the byte with a Hexadecimal number. Octal (base 8) was and is sometimes also used to represent the upper or lower nibble of a byte or the value of a 4 bit register.

Hope this informs.
.

__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind




--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.8/1289 - Release Date: 2/20/2008 10:26 AM



__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: