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

[colorforth] number encoding


Instead of tags for both large numbers (up to 32 bits) and small numbers
(up to 27 bits), have one tag and a bit which indicates if the number is
contained in the next word to be interpreted or is contained in the upper
26 bits of the current word.

The advantages:

* Two tags are freed (three if there is to be blue number)
* Better coorespondence with the colorForth bitstream (the bitstream
    doesn't have large numbers and small numbers, but a variable length
    encoded number)
* more?

The disadvantages:

* numbers requiring 27 bits are bumped to the next word (is this a
  frequent occurrence?)
* more?

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