Module program

Source
Expand description

Stored program manipulation.

Structs§

DisasmCommand
The DISASM command.
EditCommand
The EDIT command.
KillCommand
The KILL command.
ListCommand
The LIST command.
LoadCommand
The LOAD command.
NewCommand
The NEW command.
RunCommand
The RUN command.
SaveCommand
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 the machine, using console for interactive editing and using storage as the on-disk storage for the programs.
continue_if_modified
If the program is dirty, asks if it’s OK to continue on console and discard its changes.