Zink::VM
Constants
DEFAULT_MAX_STEPS = 25000
Constructors
Instance methods
export_save
Sourceexport_save_for_persistence
Export a snapshot with PC rewound to the last sread instruction. On import + run_unbounded, the VM re-executes sread → read_line → blocks waiting for input, which is the correct between-turns state.
halted
Sourceimport_save(snapshot : SaveSnapshot) : Nil
Sourcelast_read_pc
Address of the most recent sread instruction — used by export_save_for_persistence to rewind PC so that on restore the VM re-executes the sread and blocks waiting for input.
pc
Sourcerun(max_steps = DEFAULT_MAX_STEPS) : Nil
Sourcerun_unbounded
Sourcestep
Sourceworldview
Source