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
,pmem
and the like).
The
stime
command (un)sets the printing of timing statistics, andptime
prints their current value:MIX > ptime Elapsed time: 10 /Total program time: 11 (Total uptime: 11) MIX >
sedit
sets the command to be used to edit MIXAL source files with theedit
command. TEMPLATE must contain the control characters%s
to mark the place where the source's file name will be inserted. For instance, if you typeMIX > sedit emacsclient %s MIX >issuing the
mixvm
commandedit foo.mixal
will invoke the operating system commandemacsclient foo.mixal
.
pedit
prints the current value of the edit command template.
sasm
sets the command to be used to compile MIXAL source files with thecompile
command. template must contain the control characters%s
to mark the place where the source's file name will be inserted. For instance, if you typeMIX > sasm mixasm -l %s MIX >issuing the
mixvm
commandcompile foo.mixal
will invoke the operating system commandmixasm -l foo.mixal
.
pasm
prints the current value of the compile command template.
MIX devices (see Devices) are implemented as regular files stored, by default, inside ~/.mdk. The
sddir
command lets you specify an alternative location for storing these device files, whilepddir
prints the current device directory.
Finally, you can change the default command prompt, `MIX > ',
using the prompt
command: