Toddy Forth has some special modifications - so I think you couldn't use BASIC context here.
Not sure what you really want to do.
You could try to contact Kelly Murta, his name here is kmurta (for private message for example).
Sometimes he is online - from time to time but think will answer on messages.
I guess that the basic context (system variables) are more or less destroyed when starting Toddy Forth.
If just the stack point would be modified, RST $8, DEFB 0xFF should work to switch back.
It just set the stack new and restart BASIC but doesn't restore all system variables.
PokeMon wrote:I guess that the basic context (system variables) are more or less destroyed when starting Toddy Forth.
If just the stack point would be modified, RST $8, DEFB 0xFF should work to switch back.
It just set the stack new and restart BASIC but doesn't restore all system variables.
The system variables are not changed, but the stack contents are overwrited by the forth return stack. To return to BASIC with RST $08 the stack contents should be restored.
1 x ZX81, 2 x TK85 , 1 TK82C, 1 TK95, 1 x Alphacom 32 printer, 1 x ZXpand
ZeXtender board, Joy81 - Programmable Joystick Controller, Turbo Sound 81 http://zx81.eu5.org https://toddysoftware.itch.io/