$AT
@file

Reads in "file" as if its contents had been entered at the E11 prompt.  The
default extension is ".CMD".  Indirect files cannot be nested.
$ASNTTY
ASSIGN pdpdev pcdev /switches
ASSIGN pdpdev fkey

Assigns a PDP-11 character device (TTn: or LPn:) a physical PC device, which
is either a COM port, COM1:-COM4:, an LPT port, LPT1:-LPT4:, or an F-key,
F1-F12 (i.e. the keyboard and primary monitor may be switched to that port by
pressing Alt and that key, or the secondary monitor may be switched to that
port if you press Ctrl and that key).  Switches are /IRQn and /SHARE for COM or
LPT ports.
$ASNETH
ASSIGN XEn: PKTD[=int] [prot1 prot2 ...]

Assigns a DELUA (XEn:) port to an ethernet board for which a packet driver has
been loaded (from DOS, prior to starting E11).  The packet driver is found at
the specified INT vector (hex), or if it's not specified then the range from 20
to FF is searched for any packet driver not already in use by E11.  The driver
must conform to version 1.10 or later of FTP Software's packet driver spec.  If
prot1 etc. are specified, they are the hex DIX protocol numbers of up to ten
packet types that the DELUA will be able to receive (to allow cooperation with
other protocol stacks on the same PC);  if no protocols are specified then the
DELUA arranges to receive all packet types.
$BOOT
BOOT pdpdev [/switches]

Boots the PDP-11 from the specified mass storage device (must be MOUNTed).
Switches are /RT11 or /RSTS (to control mechanism for passing date/time
information to those systems) or /HALT to stop the CPU after loading the boot
block.
$CALC
CALCULATE expr
& expr

Calculate the value of an expression.

Binary operators:  * / + - (usual precedence)
Unary operators:   + - ^C
Primaries:         (expr) octno decno. ^Xhexno ^Rrad50no 'ascval
                   r0 r1 r2 r3 r4 r5 sp pc ps r0' r1' r2' r3' r4' r5'
$DEASN
DEASSIGN pdpdev

Undoes an ASSIGN command, disconnecting the specified PDP-11 device from its
assigned PC device.
$DELAY
SET DELAY device c:n c:n ...
SHOW DELAY device

Sets (shows) the number of instructions that the specified commands appear to
take to complete on the indicated device.  The device may be DELUA, DL11, LP11,
PC11, RL11, RK611, RX11, or RX211 (syn. for RX11).  For each parameter "c:n", c
is the command number (meaning depends on the device), and n is the number of
PDP-11 instructions the emulator should delay before signaling completion of
that command;  both are octal unless followed by ".".  See the Ersatz-11
documentation for details.
$DEPOS
DEPOSIT absloc data

Deposits the specified word in the specified absolute address.
$EXAM
EXAMINE absloc

Examines the word at the specified absolute address.
$FPREG
FPREGISTER [ac v1 v2 v3 v4]

Displays all FP registers, or sets the value of the specified AC (0-5) to the
specified four octal words.
$GO
GO reladdr

Starts the CPU at the specified virtual address.
$HALT
HALT

Halts the CPU immediately if it is running.
$INIT
INITIALIZE

Reinitializes all devices, disables the MMU, sets kernel mode.
$LIST
LIST [reladdr]

Disassembles the next eight instructions starting at reladdr if it is given, or
at the instruction following the last LIST or REGISTER display if not.
$LOGDSK
LOG ddu: [filename] [/APPEND]

Logs disk commands to the specified controller (unit number is insignificant),
or turns off logging if no filename is given.  /APPEND means to append to an
existing log file instead of replacing it.
$LOGTTY
LOG ddu: [filename] [/APPEND]

Logs TT: or LP: output to a file, or turns off logging if no filename is given.
/APPEND means to append to an existing log file instead of replacing it.
$LOGETH
LOG XEn: [filename] [/[NO]COMMANDS] [/[NO]RECEIVE] [/[NO]TRANSMIT] [/APPEND]

Logs ethernet events;  the switches specify which events are logged.
/[NO]COMMANDS logs (or suppresses logging of) all commands issued to a DELUA by
the PDP-11;  similarly, /[NO]RECEIVE and /[NO]TRANSMIT enable or disable
logging of received or transmitted frames.  LOG XEn: with no parameters closes
the log file, LOG XEn: with switch(es) but no filename adjusts what event types
are logged on a file which is already open.  If a log file is opened with no
switches, the default is /RECEIVE /TRANSMIT.  /APPEND means to append to an
existing log file instead of replacing it.
$MOUNT
MOUNT pdpdev dosfile /switches
MOUNT pdpdev f: /switches

Mounts the specified PDP-11 mass storage unit using the specified DOS container
file, or floppy drive if only "f:" is given (RX01/02/03 only).  Switches are
/RONLY (or /WPROTECT) and /RW (default) for disks, floppies also allow /SSSD
/SSDD etc.

DLn:    RL01/02 5/10 MB disk, file size tells which
DMn:    RK06/07 14/28 MB disk, file size tells which
DXn:    RX01/02/03 floppy disk, distinguished by MOUNT switch, SET DX: command,
        file size, or disk format if real drive is mounted (DYn: is syn.)
HDn:    hypothetical disk device, compatible with "Russian" LSI-11/2 emulator
PP:	PC11 paper tape punch
PR:	PC11 paper tape reader
$PROC
PROCEED [breakaddr]

Restarts the CPU at the current address, optionally setting a single hard
breakpoint (i.e. not visible to software) at the specified virtual address.
$QUIT
QUIT

Exits Ersatz-11.
$REG
REGISTER [r v]

Displays the CPU general registers and disassembles the next instruction, or
sets the specified register (0-7) to the specified value if r and v are
specified.
$STEP
STEP

Executes a single PDP-11 instruction.
$SETSR
SET SWITCH n
SET SWITCH PORT n

The first command specifies the octal value for the virtual switch register
(initially 000000), which is readable at PDP-11 address 777570.  The second
command specifies the octal I/O address of a 16-bit port which gives the
switch register value when read using an 80x86 word IN instruction.  Building
the interface is left as an exercise to the reader.
$SETDR
SET DISPLAY NONE
SET DISPLAY PORT n
SET DISPLAY LPTn:
SET DISPLAY {DR | R0 | R1 ... | PC}

The first command specifies that no hardware display register exists (the
default condition) and that values written to PDP-11 address 777570 should be
thrown away.  The second command specifies the octal I/O address of a 16-bit
port to which the display register value should be written with an 80x86 word
OUT instruction.  The third command specifies that the display register should
be simulated using the parallel port LED board described in the documentation
(or available from the author).  The fourth command specifies which register is
displayed on the hardware lights port defined by either the second or third
command;  DR is the default but some OSes use R0 for their null job displays.
$SETFLP
SET FLOPPY RX11
SET FLOPPY RX211

Sets which floppy interface is emulated.  RX211 is the default, and is superior
in all ways to RX11, but RX11 may be needed for compatibility with old
software.  May be changed on the fly, but the OS won't like it.
$SETKB
SET KEYBOARD {SWAP | NOSWAP}

Tells Ersatz-11 whether to swap the functions of the Caps Lock and left Ctrl
keys.  Useful for people who have 101-key Enhanced keyboards, and hate them.
$SETHZ
SET HERTZ {50 | 60}

Sets the actual frequency of the emulated KW11L line clock.  This should be
changed only if your software expects 50 Hz, 60 Hz is the default.
$SETSCP
SET [NO]SCOPE

Sets the style of rubout processing used with input typed to the Ersatz-11
prompt.  Mainly useful if you ASSIGN TT0: to a DECwriter (etc.) on a COM port.
SCOPE is the default.
$SETSCR
SET SCROLL {HARD | SOFT}

Sets the type of scrolling to use for video display.  HARD (the default)
scrolling works by resetting the base address of the screen and is very fast,
but may expose bugs in the video emulation in your favorite GUI OS's DOS box,
or cause problems with TSRs that touch the screen.  SOFT scrolling works by
copying the whole screen up a line on each line feed and should work in even
the most brain-damaged DOS window.
$setdev
SET ddu: parm1 [parm2...]

Sets various device-specific parameters for the specified PDP-11 device and
unit.  More than one parameter may be specified in the same command.
The possible parameters for each device type are:

TTn:    CSR=nnnnnn VECTOR=nnnnnn
LPn:    CSR=nnnnnn VECTOR=nnnnnn
DXn:    SSSD SSDD DSSD DSDD
PR:	REWIND
XEn:    BOOT=DISABLE (default) or BOOT=ddu:[/os] (to enable remote boot)
        (not yet implemented)
$SHWDEV
SHOW ddu:

Shows current parameters for the specified PDP-11 device.
