RE: what is Hex?

  • From: "Sina Bahram" <sbahram@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 20 Feb 2008 21:51:57 -0500

This isn't possible ... octal is only three bits long, and there are 8 bits
in a byte.

Given a shift and a mask, you can address each bit in a byte using a maximum
of one octal number ... maybe that's what you mean?

Take care,
Sina

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Dale Leavens
Sent: Wednesday, February 20, 2008 4:01 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: what is Hex?

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

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

Other related posts: