home .. forth .. colorforth mail list archive ..

Re: [colorforth] How are words truncated?


On Mon, Jun 20, 2005 at 04:02:26PM -0400, maslicke@xxxxxxxxxxx wrote:
> >Date: Mon, 20 Jun 2005 21:52:31 +0200
> >From: albert@xxxxxxxxxxxxxxxxxx (Albert van der Horst)
> >Subject: [colorforth] How are words truncated?
> >To: colorforth mailing list <colorforth@xxxxxxxxxxxxxxxxxx>
> >
> >One of the most annoying things remaining in my meta-
> assembler is
> >the situation with extension words, where a Huffman token
> spans
> >two 32 bit longs.
> >E.g. screen 18 reads
> >
> >         (colorf +orth (Jul3 +1  ...
> >code     9       0     A     0
> >
> >

> Characters are packed into the upper 28-bits of a 32-bit
> word, but the last character may extend the length of the
> characters past 28-bits if the extended bits of the
> character are zero. 'pack' will always pack as many
> characters as possible in a preparsed word.

Thanks. I thought it was 27 bits, but apparently that applies to
numbers. I'm happy to have the "as many as possible" which
results in unambiguity.

Groetjes Albert

--
Albert van der Horst,Oranjestr 8,3511 RA UTRECHT,THE NETHERLANDS
Economic growth -- like all pyramid schemes -- ultimately falters.
albert@xxxxxxxxxxxxxxxxxx http://home.hccnet.nl/a.w.m.van.der.horst

---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com