Table of Contents
RT-11 commands on the PDP-11/23
Everyday RT-11 keyboard monitor commands for the PDP-11/23 with a QBone Dual.
Verified on RT-11 V5.5 (SJ monitor) booted from an emulated RL02.
Prompt is a dot. DL0: is the system disk, DL1: the QBone games disk,
DL2: the tu58fs games pack. No device given means DK:.
Quick Reference
| Task | Command |
|---|---|
| List files | DIR |
| List files on another drive | DIR DL1: |
| Show a text file | TYPE FILE.TXT |
| Copy a file | COPY A.TXT B.TXT |
| Rename | RENAME OLD.TXT NEW.TXT |
| Delete | DELETE FILE.TXT |
| Make a drive the default | ASSIGN DL1: DK |
| Run a program from DK: | RUN ADVENT |
| Run a system utility from SY: | R PIP |
| Stop a program | Ctrl-C twice |
| Merge free space on a disk | SQUEEZE DL3: |
| Set the date | DATE 14-MAR-96 |
Names and devices
File names are 6 characters plus a 3-character type: DL1:ADVENT.SAV.
Commands shorten to their first unique letters — DIR, COP, REN.
| Device | Meaning |
|---|---|
SY: | system device, the disk RT-11 booted from — DL0: here |
DK: | default device, used when you give none |
DL0:-DL3: | RL01/RL02 drives |
DY0: DY1: | RX02 floppies — DX: for RX01 |
TT: LP: NL: | terminal, line printer, null |
Looking at disks
# List the default device:
DIR
# List another drive:
DIR DL1:
# List only programs:
DIR DL1:*.SAV
# Names only, several per line:
DIR/BRIEF
# Include the unused areas:
DIR/FULL
* matches any string, % one character.
Copying, renaming, deleting
# Copy a file:
COPY A.TXT B.TXT
Input first, output second.
# Copy everything to another disk:
COPY DL1:*.* DL3:
# Rename a file:
RENAME OLD.TXT NEW.TXT
# Delete without being asked:
DELETE/NOQUERY *.BAK
# Merge free space so a big file fits:
SQUEEZE DL3:
Files are stored in one piece. A disk can have plenty of free blocks and
still no gap big enough. SQUEEZE fixes that.
Running programs
# Run a program from DK:
RUN ADVENT
# Run a program from a given drive:
RUN DL1:SST
# Run a system utility from SY:
R PIP
# Run a command file:
@STARTS
# Get back into a program after Ctrl-C:
REENTER
Works for BASIC — the program in memory survives.
Keys
| Keys | Action |
|---|---|
DELETE | Erase last character |
Ctrl-U | Erase the line |
Ctrl-C | Interrupt; twice stops a program |
Ctrl-O | Discard output until pressed again |
Ctrl-S / Ctrl-Q | Pause / resume output |
Ctrl-Z | End of input for PIP, DUP and friends |
Assignments and status
# Make DL2: the default device:
ASSIGN DL2: DK
# Put DK: back to SY:
DEASSIGN DK
# Show assignments:
SHOW ASSIGNMENTS
# Show installed device handlers:
SHOW DEVICES
# Show monitor type, CPU options, clock:
SHOW CONFIGURATION
# Show what is loaded where in memory:
SHOW MEMORY
Date, time and terminal
# Set the date:
DATE 14-MAR-96
# Set the time:
TIME 13:45:00
# Make DELETE erase on a CRT:
SET TT SCOPE
# Set the line width:
SET TT WIDTH=80
# Honour Ctrl-S / Ctrl-Q from the terminal:
SET TT PAGE
Put the SET lines in STARTS.COM so they run at every boot.
The gotchas
# 1. RT-11 V5.5 is not Y2K-aware.
Use a year in the 1900s. DATE 14-MAR-96 works; 2026 does not.
# 2. Time only moves with a line clock.
Enable the QBone KW11 in the .cmd file before booting. Check with
TIME, wait, TIME again.
# 3. Games that read data files expect them on DK:.
ADVENT, DUNGEO and SPCINV open their data on the default device.
RUN DL1:ADVENT alone fails to find ADVTXT.TXT.
# Assign first, then run:
ASSIGN DL1: DK
RUN ADVENT
# 4. RT-11 does not add CR to a bare LF.
Text files from Unix — most .VT animations — smear diagonally to the right
edge on a real VT100. Use the _crlf disk images, or turn on the terminal's
new line mode (LNM) while watching them.
Disk housekeeping
# Erase a disk and write an empty directory:
INITIALIZE DL3:
Asks “Are you sure?”. Destroys every file.
# Copy a whole disk:
COPY/DEVICE DL1: DL3:
# Make a disk bootable:
COPY/BOOT DL3:RT11SJ.SYS DL3:
Needs the monitor and handler .SYS files on that disk. Run it again after
anything rearranges the files on a boot disk.
# Reboot from another disk:
BOOT DL1:
File types
| Type | Meaning |
|---|---|
.SAV | Runnable program |
.SYS | Monitor or device handler |
.COM | Command file, run with @ |
.TXT .DOC | Text and documentation |
.MAC .FOR .BAS | MACRO-11, FORTRAN, BASIC source |
.OBJ | Object file, input to LINK |
.VT | VT100 animation — play with TYPE |
ODT in brief
The @ prompt is the KDF11-A console debugger. Numbers are octal.
| Input | Action |
|---|---|
1000/ | Open and show location 1000 |
value then LF (Ctrl-J) | Store, open next location |
value then RETURN | Store and close |
R0/ … R7/ | Registers — R6 is the stack pointer |
1000G | Start running at 1000 |
P | Proceed after a halt |
# Set a stack before running hand-entered code:
R6/
Then type 1000 and RETURN. Without it the first interrupt pushes onto a
garbage stack and the CPU halts with 000002.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Game can't find its data file | data file not on DK: | ASSIGN DL1: DK first |
| Copy fails, disk has free blocks | free space fragmented | SQUEEZE the disk |
DATE rejected | year past 1999 | use a 1900s year |
| Time never changes | no line clock | enable KW11 before boot |
.VT file smears right | LF without CR | _crlf disk or terminal LNM |
| DELETE prints instead of erasing | terminal set as hardcopy | SET TT SCOPE |
| Output runs off the screen | no pause | Ctrl-S / Ctrl-Q, SET TT PAGE |
| Ctrl-C left a program | dropped to the monitor | REENTER |
Rule of thumb: ASSIGN the disk you are working on to DK: and forget the
device names.
Related: QBone setup, BASIC-11, games disk contents.
