My approach with RS was slightly wrong: RS' TOP was always containing current IP. It worked, but it was problematic when came the time to introduce RS-modifying words: it's impossible to modify RS in a word without immediately messing your flow. Therefore, what used to be RS' TOS has to be a variable that isn't changed midway by RS-modifying words. I guess that's why RS is called *return* stack... |
||
|---|---|---|
| .. | ||
| forth.c | ||
| glue0.asm | ||
| glue1.asm | ||
| stage1.c | ||