From: <ha...@hu...> - 2007-03-12 06:42:29
|
Hi, (I am a beginner in Forth, so please excuse me if the question is stupid). I need to create a lookup table in Flash which will be used to translate decimal digits to 7 segment display digits. In a RAM-based forth, I could write something like table constant -2 allot 63 , 6 , 91 , 79 , 102 , 109 , 125 , 7 , 127 , 111 , This would (as far as I understand) a base pointer table that pointed to the 63, with the other values following. How would I do this with amforth? As far as I can read from the source code, allot acts on the heap (RAM) pointer. Is there something equivalent to allot that acts on the current dictionary pointer? I would be willing to waste one byte for each entry in the table and use 16 bits for each, but i=B4d like to easily access the base pointer of the table. Thanks! Hans |