From: <ha...@hu...> - 2007-03-12 08:33:02
|
2007/3/12, Matthias Trute <mt...@we...>: > > 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 Oops, I guess I really meant to write 0 constant table -2 allot > a quick solution would be > > > create table > ok > > 1 , 2 , 3 , 4 , 5 , 6 , > ok > > 1 table + i@ . > 1 ok > > 2 table + i@ . > 2 ok > > 6 table + i@ . > 6 ok So your example creates an array with indices starting at 1 instead of 0, but that will do. Thanks a lot! -Hans |