Next: , Previous: Timing, Up: Native Mode


13.8 Command Language

The simulator allows you to control it via a command language. While the program is running, you can enter commands via the user-interface. You can also load scripts of commands from files.

Some files are checked automatically at startup and these commands are always run. These are kept in the conf subdirectory of the source tree. First, it will load conf/freewpc.conf. Then it will load a machine-specific file, conf/machine.conf.

In the curses-based simulator, press the colon key (like in vi) to open a command prompt. Other UIs may be different.

The basic commands are listed below. See other sections for more commands that are more specific.

Because commands can be placed in script files, shell-style comments and blank lines are accepted and ignored.

•set var value
•print var
•include file
•sw switch
•swtoggle switch
•key keyname switch
•push value
•pop argcount
•sleep time
•exit