I need a 16-element sample buffer and a lookup table in a Forth program for a microcontroller board. I know VARIABLE gives one cell, and I have seen CREATE BUF 16 CELLS ALLOT and CREATE TABLE 10 , 20 , 30 , in examples without really understanding what is happening. My first attempt, BUF 3 + @, returns garbage for the fourth element.
How does Forth allocate memory for data, how do I index into it correctly, and is there any way to release it again?




