You. Forth. Simplicity.

git repository
download
prior releases
documentation wiki
issue tracker
mailing list and forum
irc channel and logs
try it


This wiki remains, like the original forum, mainly for historical value. There is a new wiki which, while having less content, is more secure and oriented towards modern Retro implementations.

reload node | edit | recent changes | front page

Jumps

Jumps in x86 are nearly always relative, rather than absolute. Therefore, you can't simply place the pointer of where you want to go in the vector area. The relative distance must be determined by subtracting the destination from the source.

( this does not work)
: test [ here ] vector ." part 1" [ here ] ." part 2" [ swap 1+ ! ] ;
( however this does )
: test [ here .s ] vector ." part 1 " [ here .s ] vector ." part 2" [ swap tuck - swap 1+ ! .s ] ;