the vm already exists. this is it with the lid off: every instruction is a frame you can walk to. the stack, the variables, the program counter and the output are snapshotted after each step, so you can drag the slider backward and watch the machine un-run. same language, same bytecode, same semantics as the compiled version.