VM/Interpreter - stack or register based?

If the user sees an error he can modify the code in RAM.

And how would that work, without the use of another computer?