The Cyber-Spy.Com Usenet Archive Feeds Directly
From The Open And Publicly Available Newsgroup
This Group And Thousands Of Others Are Available
On Most IS NNTP News Servers On Port 119.
Cyber-Spy.Com Is NOT Responsible For Any Topic,
Opinions Or Content Posted To This Or Any Other
Newsgroup. This Web Archive Of The Newsgroup And
Posts Are For Informational Purposes Only.
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 14:40:12 GMT
NNTP-Posting-Date: Sun, 15 Sep 2002 07:40:12 PDT
Keith Wootten wrote:
> In message <3D848B9F.DFDB3D75@webaccess.net>, Chuck Simmons
> >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).
> I do a lot of embedded Forth programming, and my compilers use $AB #23
> %10110110 for hex, decimal and binary. IMO, the flexible number base
> which Forth provides is not useful and can lead to errors; the base is
> an essential part of the number and should always be included in the
> source code.
> Doing this also provides a degree of extra information for the reader -
> $1234 is likely to be an address rather than a physical constant, for
> example, and %01101101 is probably a mask.
> Keith Wootten
That's quite interesting. The 1983 Forth standard was the last one I
used for various reasons so I had not seen such evolutions as you
indicate. I got into Forth in the very early days. Chuck Moore had just
left NRAO to start Forth Incorporated and I was at Steward Observatory
where we had a Forth that we had obtained from him which ran on DG Nova
8xx computers. I rather miss having Forth for certain types of problems
and I am tempted to write a metacompiler for AVR. It could save some
memory without horrible loss of speed.
... The times have been,
That, when the brains were out,
the man would die. ... Macbeth
Chuck Simmons firstname.lastname@example.org
Go Back To The Cyber-Spy.Com
Usenet Web Archive Index Of
The sci.electronics.design Newsgroup