![]() |
You. Forth. Simplicity. |
reload node | edit | recent changes | front page
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 ] ;