Re: what is Hex?

  • From: "Jackie McBride" <abletec@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Wed, 20 Feb 2008 20:13:12 -0700

Alex:

A nibble is 4 bits/half a byte.  The nice thing about hex is that 1
hexadecimal number represents 1 nibble, e.g., if u have an 8-bit
binary number as:
11111111B
then it's ff in hex.  This saves an incredible amount of conversion.
U just take each 4 binary numbers & convert them to hex.  BTW, bit
actually is an acronym for "binary digit".  Remember that at its basic
level the computer's functions consist of 1's & 0's.  The high-level
constructs like letters & numerals are artificial representations that
make it easier for us to read & understand, but the computer deals
only w/binary.

On 2/20/08, Sina Bahram <sbahram@xxxxxxxxx> wrote:
> 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
>
>


-- 
Jackie McBride
Please join my fight against breast cancer
<http://teamacs.acsevents.org/site/TR?px=1790196&pg=personal&fr_id=3489>
& Check out my homepage at:
www.abletec.serverheaven.net
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: