From: Chuck Simmons
Organization: You jest.
X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.0.33 i586)
Subject: Re: bits question
Date: Sun, 15 Sep 2002 13:30:49 GMT
NNTP-Posting-Date: Sun, 15 Sep 2002 06:30:49 PDT
> John Woodgate wrote:
> > I read in sci.electronics.design that Chuck Simmons
> > wrote (in <3D842B61.8256A228@webaccess.net>)
> > about 'bits question', on Sun, 15 Sep 2002:
> > >I did blow it though. Delete, which is 0x7f in 7 bit ASCII, is
> > >non-printing. I suppose that 0xff is also non-printing.
> > Would someone please explain in simple terms what the '0x' part of a hex
> > number means?
> > --
> > Regards, John Woodgate, OOO - Own Opinions Only.
> I believe this should come from the programming (e.g. the C language). 0x means
> that what follow is a hexadecimal number: in C, 0x10 means 16 decimal, 010
> means 8 decimal (octal base (radix) assumed).
Correct but various conventions are used making things interesting at
times. I use an assembler that recognizes "$" and "0x" to mean base 16
so that 0x2b=$2b as far as that assembler is concerned. In the FORTH
language, there typically is no way to indicate the base which is
completely arbitrary - you have to remember what it is set to at the
moment (usually 2, 8, 10 or 16).
... The times have been,
That, when the brains were out,
the man would die. ... Macbeth
Chuck Simmons firstname.lastname@example.org