[colorforth] arrays in source
- Subject: [colorforth] arrays in source
- From: Mark Slicker <maslicke@xxxxxxxxxxx>
- Date: Fri, 26 Dec 2003 13:16:04 -0500 (EST)
colorForth has the concept of source code as data, prominently the magneta
variable.
In the colorForth preparsed source there is potential for whole arrays to
be stored in source.
Large numbers require 2 32-bit words.
5 bits of the first 32-bit word denotes the color of the number and the
type of display. The second word is the actual number.
To generalize this, let the remaining 27 bits of the first word denote a
count, and let there be a corresponding number of 32-bit words which folow
the first word.
For count > 1 place the address in source on the data stack, otherwise
place the actual number.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com