#define MAX_LINE_LENGTH 160
#define ALLOCATION_CHUNK_SIZE 128
+#define PAD_SIZE 84
#define CELL sizeof(cell_t)
#define DSTACKSIZE 64
{
uint8_t* p = here + length;
- if (p > here_top)
+ while ((p+PAD_SIZE) > here_top)
{
uint8_t* newtop = sbrk(ALLOCATION_CHUNK_SIZE);
if (newtop != here_top)
COM( one_word, rvarword, "1", ¬equals0_word, (void*)1 ) //@W
COM( or_word, or_cb, "OR", &one_word, ) //@W
COM( over_word, peekcon_cb, "OVER", &or_word, (void*)1 ) //@W
-COM( pad_word, rvarword, "PAD", &over_word, &here ) //@W
+COM( pad_word, rivarword, "PAD", &over_word, &here ) //@W
COM( pick_word, pick_cb, "PICK", &pad_word, ) //@W
COM( pling_word, pling_cb, "!", &pick_word, ) //@W
COM( q_dup_word, q_dup_cb, "?DUP", &pling_word, ) //@W