Expand description
Stored program manipulation.
Structs§
- Disasm
Command - The
DISASM
command. - Edit
Command - The
EDIT
command. - Kill
Command - The
KILL
command. - List
Command - The
LIST
command. - Load
Command - The
LOAD
command. - NewCommand
- The
NEW
command. - RunCommand
- The
RUN
command. - Save
Command - The
SAVE
command.
Constants§
- BREAK_
MSG - Message to print on the console when receiving a break signal.
Traits§
- Program
- Representation of the single program that we can keep in memory.
Functions§
- add_all
- Adds all program editing commands against the stored
program
to themachine
, usingconsole
for interactive editing and usingstorage
as the on-disk storage for the programs. - continue_
if_ modified - If the
program
is dirty, asks if it’s OK to continue onconsole
and discard its changes.