3 ms·
I was following along until the author stopped explaining new syntax. "over", according to forth.com, copies second item to top... ( n1 n2 — n1 n2 n1 ) But I
by imglorp 7y ago
I was following along until the author stopped explaining new syntax.
"over", according to forth.com, copies second item to top... ( n1 n2 — n1 n2 n1 )
But I get lost with >r, r>, r@, and !
- loa_in_ 7y agor@, r>, >r are operating on return stack, another stack that's dedicated to return addreses and control structures (intermediate states of for loop for example)
- loa_in_ 7y agoThey move top cell from stack to return stack or vice versa. r@ and r! are effectively equivalent to r> @ and r> ! ... or was it r> @ >r and r> ! >r