https://github.com/BartGo/forth-atari is a collection of Forth code snippets - some are mine but most come from Forth Dimensions or other magazines of the era. Those which finally work were tested with APX Extended #figforth (by Patrick Mullarky) on #atari8bit, emulated in Altirra... Especially dev tools are interesting - finding all words which use a specified word (!); decompiling; breakpoints; screen-based editing... Behold, #forth is the ultimate puzzle langauge, the pinnacle of recreational computing...
CODE RP@
XSAVE STX,
TSX, TXA, PHA,
1 # LDA,
XSAVE LDX,
PUSH JMP,
Thanks to this single #6502asm #forth word (which adds access to the current return stack pointer, to APX #figforth on #atari8bit) - Forth can do better debugging, tracing, logging, errors can show all the way down (up?) the return stack to better identify the source of an error... Forth Dimensions published so many great articles in the 80s! Another revolutionary invention is a "yield" (r> r> swap >r >r) / "coroutine".

