Next: Scheme commands, Previous: State commands, Up: Commands
This section describes commands that allow you to configure the virtual machine behaviour. This configuration is stored in the mdk directory ~/.mdk.
As you can see in their description, some commands print, as a side
effect, informational messages to the standard output (e.g. load
prints a message telling you the loaded program's start address): these
messages can be enabled/disabled using slog:
Turns on/off the logging of informational messages. Note that error messages are always displayed, as well as state messages required using commands prefixed with
p(preg,pmemand the like).
The
stimecommand (un)sets the printing of timing statistics, andptimeprints their current value:MIX > ptime Elapsed time: 10 /Total program time: 11 (Total uptime: 11) MIX >
seditsets the command to be used to edit MIXAL source files with theeditcommand. TEMPLATE must contain the control characters%sto mark the place where the source's file name will be inserted. For instance, if you typeMIX > sedit emacsclient %s MIX >issuing the
mixvmcommandedit foo.mixalwill invoke the operating system commandemacsclient foo.mixal.
peditprints the current value of the edit command template.
sasmsets the command to be used to compile MIXAL source files with thecompilecommand. template must contain the control characters%sto mark the place where the source's file name will be inserted. For instance, if you typeMIX > sasm mixasm -l %s MIX >issuing the
mixvmcommandcompile foo.mixalwill invoke the operating system commandmixasm -l foo.mixal.
pasmprints the current value of the compile command template.
MIX devices (see Devices) are implemented as regular files stored, by default, inside ~/.mdk. The
sddircommand lets you specify an alternative location for storing these device files, whilepddirprints the current device directory.
Finally, you can change the default command prompt, `MIX > ',
using the prompt command: