Re: How are words truncated?
[email protected] (Albert van der Horst)
| Newsgroups | gmane.comp.lang.forth.colorforth |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jun 20, 2005 at 04:02:26PM -0400, [email protected] wrote: > >Date: Mon, 20 Jun 2005 21:52:31 +0200 > >From: [email protected] (Albert van der Horst) > >Subject: [colorforth] How are words truncated? > >To: colorforth mailing list <[email protected]> > > > >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. [email protected] http://home.hccnet.nl/a.w.m.van.der.horst