1. Interdata 16b/32b simulator usage¶
- Date:
2022-07-12
- Revision:
$Format:%H$
- Copyright:
See LICENSE.txt for terms of use.
This memorandum documents the Interdata 16b and 32b simulators.
1.1. Simulator files¶
sim/
scp.h
sim_console.h
sim_defs.h
sim_fio.h
sim_rev.h
sim_sock.h
sim_tape.h
sim_timer.h
sim_tmxr.h
scp.c
sim_console.c
sim_fio.c
sim_sock.c
sim_tape.c
sim_timer.c
sim_tmxr.c
sim/interdata/
id_defs.h
id16_cpu.c
[id32_cpu.c
]id16_dboot.c
[id32_dboot.c
]id_dp.c
id_fd.c
id_fp.c
id_idc.c
id_io.c
id_lp.c
id_mt.c
id_pas.c
id_pt.c
id_tt.c
id_ttp.c
id_uvc.c
id16_sys.c
[id32_sys.c
]
1.2. Interdata features¶
The Interdata simulator includes simulators for a variety of 16b (I3, I4, I5, 70, 80, 7/16, 8/16, 8/16E) and 32b (7/32, 8/32) models. This is by no means a complete sampling of all the variations in the Interdata/Perkin-Elmer family. The 32b family included options for special communications instructions (7/32C, 8/32C), as well as a later extension for virtual memory (3200 series).
The Interdata simulator is configured as follows:
Device names |
Simulates |
---|---|
|
Interdata 3, 4, 5, 70, 80, 7/16, or 8/16 CPU with 64KB memory
Interdata 8/16E CPU with 256KB memory
|
|
Interdata 7/32 or 8/32 CPU with 1MB memory;
8/32 supports 2 or 8 register banks
|
Selector channel (1-4) |
|
Paper tape reader/punch |
|
Console terminal, Teletype interface |
|
Console terminal, PASLA interface |
|
Line frequency clock |
|
Programmable interval clock |
|
Line printer |
|
Floppy disk |
|
2.5MB/10MB cartridge disk with four disk drives |
|
Mass storage module ( |
|
|
Magnetic tape |
|
Programmable asynchronous line controller |
|
Programmable asynchronous lines, up to 32 |
The Interdata simulator implements two unique stop conditions:
Decode of an undefined instruction, and
STOP_INST
is setRunaway carriage control tape in the line printer
The LOAD
command is used to load a carriage control tape for the line printer.
The DUMP
command is used to dump a contiguous portion of memory as a self-loading bootstrap paper tape.
The syntax for the DUMP
command is:
DUMP <filename> lowaddr-highaddr
The low address must be greater than or equal to X’D0’.
Devices are assigned their default device numbers, as documented in the Interdata literature. Device numbers can be changed by the command:
SET <device> DEVNO=num
Device number conflicts are not checked until simulation starts. If there is a device number conflict, simulation stops immediately with an error message.
Selector channel devices are assigned by default to selector channel 0. Selector channel assignments can be changed by the command:
SET <dev> SELCH=num
Selector channel assignments cannot introduce conflicts.
Most devices can be disabled and enabled, with the commands:
SET <dev> DISABLED
SET <dev> ENABLED
All devices are enabled by default.
1.2.1. CPU (16b)¶
The CPU options include memory size and CPU type:
SET CPU I3 Interdata 3
(base instruction set)
SET CPU I4 Interdata 4
(base + single-precision floating-point)
SET CPU 716 Interdata 7/16
(extended instruction set)
(equivalent to Models 5, 70, and 80)
SET CPU 816 Interdata 8/16
(extended + double-precision floating-point)
SET CPU 816E Interdata 8/16E
(extended + double-precision + expanded memory)
SET CPU 8K Set memory size = 8KB
SET CPU 16K Set memory size = 16KB
SET CPU 24K Set memory size = 24KB
SET CPU 32K Set memory size = 32KB
SET CPU 48K Set memory size = 48KB
SET CPU 64K Set memory size = 64KB
SET CPU 128K Set memory size = 128KB (8/16E only)
SET CPU 256K Set memory size = 256KB (8/16E only)
SET CPU CONSINT Assert console interrupt (7/16, 8/16, and 8/16E only)
If memory size is being reduced, and the memory being truncated contains non-zero data, the simulator asks for confirmation. Data in the truncated portion of memory is lost. Initial memory size is 64KB.
These switches are recognized when examining or depositing in CPU memory:
|
Examine/deposit ASCII characters |
|
Examine/deposit bytes |
|
Examine/deposit packed ASCII characters |
|
Examine/deposit fullwords |
|
Data radix is decimal |
|
Data radix is octal |
|
Data radix is hexadecimal |
|
Examine as instruction mnemonics |
|
Interpret address as virtual |
Packed characters, halfwords, fullwords, and instructions must be aligned on a halfword (16b) boundary. If an odd address is specified, the low-order bit is ignored.
CPU registers include the visible state of the processor as well as the control registers for the interrupt system.
Name |
Size |
Comments |
---|---|---|
|
16 |
Program counter |
|
16 |
General registers |
|
32 |
Single-precision floating-point registers |
|
32 |
Double-precision floating-point registers, high order |
|
32 |
Double-precision floating-point registers, low order |
|
16 |
Processor status word |
|
4 |
Condition codes, PSW<12:15> |
|
16 |
Switch register |
|
32 |
Display register low 16 bits |
|
8 |
Display register extension |
|
1 |
Display mode |
|
2 |
Display pointer position |
|
1 |
Switch pointer position |
|
32 |
Interrupt requests |
|
32 |
Interrupt enables |
|
1 |
Stop on undefined instruction |
|
1 |
Stop if wait state and no I/O events pending |
|
16 |
PC prior to last branch or interrupt; most recent PC change first |
|
8 |
Interrupt character |
The CPU detects when the simulator is idle.
When idle,
the simulator does not use any resources on the host system.
Idle detection is controlled by the SET IDLE
and SET NOIDLE
commands:
SET CPU IDLE Enable idle detection
SET CPU NOIDLE Disable idle detection
Idle detection is disabled by default.
The CPU is considered idle if the WAIT STATE
flag is set in the PSW.
The CPU can maintain a history of the most recently executed instructions.
This is controlled by the SET CPU HISTORY
and SHOW CPU HISTORY
commands:
SET CPU HISTORY Clear history buffer
SET CPU HISTORY=0 Disable history
SET CPU HISTORY=n Enable history, length = n
SHOW CPU HISTORY Print CPU history
SHOW CPU HISTORY=n Print first n entries of CPU history
The maximum length for the history is 65536 entries.
1.2.2. CPU (32b)¶
The CPU options include memory size and CPU type:
SET CPU 732 Interdata 7/32,
single-precision floating-point
SET CPU DPFP Interdata 7/32,
double-precision floating-point
SET CPU 832 Interdata 8/32
(double-precision floating-point,
8 general register sets)
SET CPU 2RS Interdata 8/32
(double-precision floating-point,
2 general register sets)
SET CPU 64K Set memory size = 64KB
SET CPU 128K Set memory size = 128KB
SET CPU 256K Set memory size = 256KB
SET CPU 512K Set memory size = 512KB
SET CPU 1M Set memory size = 1024KB
SET CPU CONSINT Assert console interrupt
If memory size is being reduced, and the memory being truncated contains non-zero data, the simulator asks for confirmation. Data in the truncated portion of memory is lost. Initial memory size is 1024KB.
These switches are recognized when examining or depositing in CPU memory:
|
Examine/deposit ASCII characters |
|
Examine/deposit bytes |
|
Examine/deposit packed ASCII characters |
|
Examine/deposit halfwords |
|
Data radix is decimal |
|
Data radix is octal |
|
Data radix is hexadecimal |
|
Examine as instruction mnemonics |
|
Interpret address as virtual |
Packed characters, halfwords, fullwords, and instructions must be aligned on a halfword (16b) boundary. If an odd address is specified, the low-order bit is ignored.
CPU registers include the visible state of the processor as well as the control registers for the interrupt system.
Name |
Size |
Comments |
---|---|---|
|
20 |
Program counter |
|
32 |
Active general register set |
|
32 |
General register sets, 16 × 2 |
|
32 |
Single-precision floating-point registers |
|
32 |
Double-precision floating-point registers, high order |
|
32 |
Double-precision floating-point registers, low order |
|
16 |
Processor status word |
|
4 |
Condition codes, |
|
16 |
Switch register |
|
32 |
Display register low 16 bits |
|
8 |
Display register extension (x/16 only) |
|
1 |
Display mode |
|
2 |
Display pointer position |
|
1 |
Switch pointer position |
|
32 |
Memory access controller segment registers |
|
5 |
Memory access controller interrupt status |
|
32 |
Interrupt requests |
|
32 |
Interrupt enables |
|
1 |
Stop on undefined instruction |
|
1 |
Stop if wait state and no I/O events pending |
|
20 |
PC prior to last branch or interrupt; most recent PC change first |
|
8 |
Interrupt character |
The CPU detects when the simulator is idle.
When idle,
the simulator does not use any resources on the host system.
Idle detection is controlled by the SET IDLE
and SET NOIDLE
commands:
SET CPU IDLE Enable idle detection
SET CPU NOIDLE Disable idle detection
Idle detection is disabled by default.
The CPU is considered idle if the WAIT STATE
flag is set in the PSW
.
The CPU can maintain a history of the most recently executed instructions.
This is controlled by the SET CPU HISTORY
and SHOW CPU HISTORY
commands:
SET CPU HISTORY Clear history buffer
SET CPU HISTORY=0 Disable history
SET CPU HISTORY=n Enable history, length = n
SHOW CPU HISTORY Print CPU history
SHOW CPU HISTORY=n Print first n entries of CPU history
The maximum length for the history is 65536 entries.
1.2.3. Selector channel (SELCH0
, SELCH1
, SELCH2
, SELCH3
)¶
An Interdata system can have 1 to 4 selector channels
(SELCH0
, SELCH1
, SELCH2
, SELCH3
).
The default number of channels is 2.
The number of channels can be changed with the command:
SET SELCH CHANNELS=num
All the state for a selector channel can be displayed with the command:
SHOW SELCH num
The selector channels implement these registers:
Name |
Size |
Comments |
---|---|---|
|
20 |
Start address, channels 0 to 3 |
|
20 |
End address, channels 0 to 3 |
|
8 |
Command, channels 0 to 3 |
|
8 |
Active device, channels 0 to 3 |
|
2 |
Read byte pointer, channels 0 to 3 |
|
3 |
Write data counter, channels 0 to 3 |
|
4 |
Interrupt requests; right-to-left, channels 0 to 3 |
|
4 |
Interrupt enables; right-to-left, channels 0 to 3 |
1.2.4. Programmed I/O devices¶
1.2.4.1. Paper Tape Reader/Punch (PT
)¶
The paper tape reader and punch (PT
units 0 and 1) read data from or write data to disk files.
The RPOS
and PPOS
registers specify the number of the next data item to be read and written,
respectively.
Thus, by changing RPOS
or PPOS
,
the user can backspace or advance these devices.
The paper tape reader supports the BOOT
command.
BOOT PTR
copies the so-called ‘50 loader’ into memory and starts it running.
The paper tape controller implements these registers:
Name |
Size |
Comments |
---|---|---|
|
8 |
Reader buffer |
|
32 |
Reader position in the input file |
|
24 |
Time from reader start to interrupt |
|
1 |
Reader stop on I/O error |
|
8 |
Punch buffer |
|
32 |
Punch position in the output file |
|
24 |
Time from punch start to interrupt |
|
1 |
Punch stop on I/O error |
|
1 |
Paper tape interrupt request |
|
1 |
Paper tape interrupt enable |
|
1 |
Paper tape interrupt armed |
|
1 |
Paper tape read/write mode |
|
1 |
Paper tape running |
|
1 |
Paper tape reader slew mode |
|
1 |
Paper tape reader end-of-file |
Error handling is as follows:
Type |
Error |
|
Processed as |
---|---|---|---|
|
Not attached |
1 |
Report error and stop |
0 |
Out-of-tape |
||
|
End-of-file |
1 |
Report error and stop |
0 |
Out-of-tape |
||
|
OS I/O error |
x |
Report error and stop |
1.2.4.2. Console, Teletype Interface (TT
)¶
The Teletype keyboard (TT0
) reads from the console keyboard;
the Teletype printer (TT1
) writes to the simulator console window.
The Teletype units (TT0
, TT1
) can be set to one of four modes,
KSR
, 7P
, 7B
, or 8B
:
Mode |
Input characters |
Output characters |
---|---|---|
|
Lowercase converted to uppercase, high-order bit set |
Lowercase converted to uppercase, high-order bit cleared, non-printing characters suppressed |
|
High-order bit cleared |
High-order bit cleared, non-printing characters suppressed |
|
High-order bit cleared |
High-order bit cleared |
|
No changes |
No changes |
Changing the mode of either unit changes both.
The default mode is KSR
.
The Teletype has a BREAK key, which is not present on today’s keyboards. To simulate pressing the break key, stop the simulator and use the command:
SET TT BREAK
Break status will be asserted,
and will remain asserted for the interval specified by KTIME
.
The Teletype interface implements these registers:
Name |
Size |
Comments |
---|---|---|
|
8 |
Input buffer |
|
32 |
Number of characters input |
|
24 |
Input polling interval (if 0, the keyboard is polled synchronously with the line clock) |
|
8 |
Output buffer |
|
32 |
Number of characters output |
|
24 |
Time from output start to interrupt |
|
1 |
Interrupt request |
|
1 |
Interrupt enable |
|
1 |
Interrupt armed |
|
1 |
Read/write mode |
|
1 |
Half-duplex |
|
1 |
Input character pending |
1.2.4.3. Console, PASLA Interface (TTP
)¶
Later Interdata system connect the system console via the first PASLA interface rather than the Teletype interface.
The PASLA console can be simulated with a Telnet session on the first PAS line.
Alternately,
the PASLA console can be attached to the simulator console window,
using the TTP
device in place of TT
.
To switch the simulator console window to TTP
,
use the command:
SET TTP ENABLED or
SET TT DISABLED
Device TT
is automatically disabled and device TTP
is enabled.
To switch the simulator console window back to TT
,
use the command:
SET TT ENABLED or
SET TTP DISABLED
Device TTP
is automatically disabled and device TT
is enabled.
If TTP
is enabled at its default device settings,
the base address for the PAS
multiplexer must be changed:
SET PAS DEVNO=12
Otherwise, a device number conflict occurs.
The PASLA keyboard (TTP0
) reads from the console keyboard;
the PALSA printer (TTP1
) writes to the simulator console window.
The PASLA units (TTP0
, TTP1
) can be set to one of four modes,
UC
, 7P
, 7B
, or 8B
:
Mode |
Input characters |
Output characters |
---|---|---|
|
Lowercase converted to uppercase, high-order bit cleared |
Lowercase converted to upper case, high-order bit cleared, non-printing characters suppressed |
|
High-order bit cleared |
High-order bit cleared, non-printing characters suppressed |
|
High-order bit cleared |
High-order bit cleared |
|
No changes |
No changes |
Changing the mode of either unit changes both.
The default mode is 7B
.
To simulate pressing the break key, stop the simulator and use the command:
SET TTP BREAK
Break status will be asserted,
and will remain asserted for the interval specified by KTIME
.
The PASLA console interface implements these registers:
Name |
Size |
Comments |
---|---|---|
|
16 |
Command register |
|
8 |
Status register |
|
8 |
Input buffer |
|
32 |
Number of characters input |
|
24 |
Input polling interval (if 0, the keyboard is polled synchronously with the line clock) |
|
1 |
Input interrupt request |
|
1 |
Input interrupt enabled |
|
1 |
Input interrupt armed |
|
1 |
Input character pending |
|
8 |
Output buffer |
|
32 |
Number of characters output |
|
24 |
Time from output start to interrupt |
|
1 |
Output interrupt request |
|
1 |
Output interrupt enable |
|
1 |
Output interrupt armed |
1.2.4.4. Line Printer (LPT
)¶
The line printer (LPT
) writes data to a disk file.
The POS
register specifies the number of the next data item to be written.
Thus, by changing POS
,
the user can backspace or advance the printer.
The default position after ATTACH
is to position at the end of an existing file.
A new file can be created if you attach with the -N
switch.
In addition,
the line printer can be programmed with a carriage control tape.
The LOAD
command loads a new carriage control tape:
LOAD <file> Load carriage control tape file
The format of a carriage control tape consists of multiple lines. Each line contains an optional repeat count, enclosed in parentheses, optionally followed by a series of column numbers separated by commas. Column numbers must be between 0 and 7; column seven is by convention top of form. The following are all legal carriage control specifications:
<blank line> No punch
(5) 5 lines with no punches
1,5,7 Columns 1, 5, 7 punched
(10)2 10 lines with column 2 punched
0 Column 0 punched
The default form is 1 line long, with all columns punched.
The line printer implements these registers:
Name |
Size |
Comments |
---|---|---|
|
7 |
Last data item processed |
|
8 |
Line buffer pointer |
|
7 |
Line buffer |
|
8 |
Vertical forms unit pointer |
|
8 |
Vertical forms unit length |
|
8 |
Vertical forms unit table |
|
1 |
Line printer interrupt request |
|
1 |
Line printer interrupt enable |
|
1 |
Line printer interrupt armed |
|
32 |
Position in the output file |
|
24 |
Character processing time |
|
24 |
Spacing operation time |
|
1 |
Stop on I/O error |
Error handling is as follows:
Error |
|
Processed as |
---|---|---|
Not attached |
1 |
Report error and stop |
0 |
Out-of-paper |
|
OS I/O error |
x |
Report error and stop |
1.2.4.5. Line Frequency Clock (LFC
)¶
The line frequency clock (LFC
) frequency can be adjusted as follows:
SET LFC 60HZ Set frequency to 60Hz
SET LFC 50HZ Set frequency to 50Hz
The default is 60Hz.
The line frequency clock implements these registers:
Name |
Size |
Comments |
---|---|---|
|
1 |
Clock interrupt request |
|
1 |
Clock interrupt enable |
|
1 |
Clock interrupt armed |
|
24 |
Clock frequency |
The line frequency clock autocalibrates; the clock interval is adjusted up or down so that the clock tracks actual elapsed time.
1.2.4.6. Programmable Interval Clock (PIC
)¶
The programmable interval clock (PIC
) implements these registers:
Name |
Size |
Comments |
---|---|---|
|
16 |
Output buffer |
|
16 |
Reset interval and rate |
|
12 |
Current interval |
|
10 |
Current decrement value |
|
1 |
Read byte select |
|
1 |
Interval overflow flag |
|
1 |
Clock interrupt request |
|
1 |
Clock interrupt enable |
|
1 |
Clock interrupt armed |
If the interval requested is an exact multiple of 1 millisecond, the programmable clock auto-calibrates; if not, it counts instructions.
1.2.4.7. Floppy Disk Controller (FD
)¶
Floppy disk options include the ability to make units write-enabled or write-locked.
SET FDn LOCKED Set unit n write locked
SET FDn WRITEENABLED Set unit n write enabled
Units can also be set ENABLED
or DISABLED
.
The floppy disk supports the BOOT
command.
BOOT FDn
copies an autoload sequence into memory and starts it running.
The floppy disk controller implements these registers:
Name |
Size |
Comments |
---|---|---|
|
8 |
Command |
|
8 |
Status |
|
8 |
Buffer |
|
16 |
Logical record number |
|
8 |
Extended status bytes |
|
8 |
Transfer buffer |
|
8 |
Transfer buffer pointer |
|
1 |
Interrupt request |
|
1 |
Interrupt enabled |
|
1 |
Interrupt armed |
|
24 |
Command response time |
|
24 |
Seek time, per cylinder |
|
24 |
Transfer time, per byte |
|
1 |
Stop on I/O error |
Error handling is as follows:
Error |
|
Processed as |
---|---|---|
Not attached |
1 |
Report error and stop |
0 |
Disk not ready |
Floppy disk data is buffered in memory; therefore, end-of-file and OS I/O errors cannot occur.
1.2.4.8. Programmable Asynchronous Line Adapters (PAS
, PASL
)¶
The Programmable Asynchronous Line Adapters (PAS
and PASL
) represent,
indistinguishably,
individual PASLA interfaces,
2-line asynchronous multiplexers,
and 8-line asynchronous multiplexers,
with a maximum of 32 lines.
All the lines are modelled as a terminal multiplexer,
with PAS
as the multiplexer controller,
and PASL
as the individual lines.
The PASLAs perform input and output through Telnet sessions connected to a user-specified port.
The ATTACH
command specifies the port to be used:
ATTACH PAS <port> Set up listening port
where port is a decimal number between 1 and 65535 that is not being used for other TCP/IP activities.
Each line (each unit of PASL
) can be set to one of four modes,
UC
, 7P
, 7B
, or 8B
:
Mode |
Input characters |
Output characters |
---|---|---|
|
Lowercase converted to uppercase, high-order bit cleared |
Lowercase converted to uppercase, high-order bit cleared, non-printing characters suppressed |
|
High-order bit cleared |
High-order bit cleared, non-printing characters suppressed |
|
High-order bit cleared |
High-order bit cleared |
|
No changes |
No changes |
Each line (each unit of PASL
) can also be set for modem control with the command SET PASLn DATASET
.
The defaults are 7B
mode and DATASET
disabled.
Finally,
each line supports output logging.
The SET PASLn LOG
command enables logging on a line:
SET PASLn LOG=filename Log output of line n to filename
The SET PASLn NOLOG
command disables logging and closes the open log file,
if any.
Once PAS
is attached and the simulator is running,
the terminals listen for connections on the specified port.
They assume that the incoming connections are Telnet connections.
The connections remain open until disconnected either by the Telnet client,
a SET PAS DISCONNECT
command,
or a DETACH PAS
command.
Other special PASLA commands:
SHOW PAS CONNECTIONS Show current connections
SHOW PAS STATISTICS Show statistics for active connections
SET PASLn DISCONNECT Disconnects the specified line.
The controller (PAS
) implements these registers:
Name |
Size |
Comments |
---|---|---|
|
8 |
Status, lines 0 to 31 |
|
16 |
Command, lines 0 to 31 |
|
8 |
Receive buffer, lines 0 to 31 |
|
8 |
Transmit buffer, lines 0 to 31 |
|
32 |
Receive interrupt requests; right-to-left, lines 0 to 31 |
|
32 |
Receive interrupt enables |
|
1 |
Receive interrupt armed |
|
32 |
Transmit interrupt requests; right-to-left, lines 0 to 31 |
|
32 |
Transmit interrupt enables |
|
1 |
Transmit interrupt armed |
|
1 |
Receiver character present, lines 0 to 31 |
The lines (PASL
) implements these registers:
Name |
Size |
Comments |
---|---|---|
|
24 |
Transmit time, lines 0 to 31 |
The additional terminals do not support save and restore.
All open connections are lost when the simulator shuts down or PAS
is detached.
1.2.5. Cartridge Disk Controller (DP
)¶
Cartridge disk options include the ability to make units write-enabled or write-locked, and to select the type of drive:
SET DPn LOCKED Set unit n write locked
SET DPn WRITEENABLED Set unit n write enabled
SET DPn 2315 Set unit n to 2315 (2.5MB)
SET DPn 5440 Set unit n to 5440 (10MB)
Units can also be set ENABLED
or DISABLED
.
The cartridge disk supports the BOOT
command.
To boot OS16/32,
the hex form of the operating system file’s extension must be placed in locations 7E:7F
.
The disk bootstrap looks for a valid OS16/32 volume descriptor in block 0,
and uses that to locate the volume directory.
It then searches the directory for a filename of the form OS16xxxx.hhh
or OS32xxxx.hhh
,
where the xxxx
is ignored and hhh
is the ASCII form of the extension from locations 7E:7F
.
The 32b bootstrap can also boot Wollongong UNIX;
locations 7E:7F
must be 0.
The bootstrap normally boots from the first (removable) platter in a 5440;
to boot from the second (fixed) platter,
use BOOT -F
.
All drives have 256 8b bytes per sector. The other disk parameters are:
Drive |
Cylinders |
Surfaces |
Sectors |
---|---|---|---|
2315 |
203 |
2 |
24 |
5440 |
408 |
4 |
12 |
The cartridge disk controller implements these registers:
Name |
Size |
Comments |
---|---|---|
|
3 |
Current command |
|
8 |
Controller status |
|
8 |
Controller buffer |
|
8 |
Current head/sector select |
|
8 |
Current cylinder select |
|
8 |
Transfer buffer |
|
16 |
Transfer buffer point |
|
16 |
Transfer buffer length |
|
1 |
First DMA service flag |
|
5 |
Interrupt requests; right-to-left, controller, drives 0 to 3 |
|
5 |
Interrupt enables |
|
1 |
Interrupts armed, drives 0 to 3 |
|
24 |
Seek latency, per cylinder |
|
24 |
Rotational latency, per sector |
|
24 |
Inter-word latency |
Error handling is as follows:
Error |
Processed as |
---|---|
Not attached |
Disk not ready |
End-of-file |
Assume rest of disk is zero |
OS I/O error |
Report error and stop |
1.2.6. Mass Storage Module/Intelligent Disk Controller (DM
)¶
MSM/IDC disk controller options include the ability to make units write-enabled or write-locked, and to select the type of drive:
SET DMn LOCKED Set unit n write locked
SET DMn WRITEENABLED Set unit n write enabled
SET DMn MSM80 Set unit n to storage module, 80MB
(67MB formatted)
SET DMn MSM300 Set unit n to storage module, 300MB
(262MB formatted)
SET DMn MCCD16 Set unit n to medium capacity, 16MB
(13.5MB formatted)
SET DMn MCCD48 Set unit n to medium capacity, 48MB
(40.5MB formatted)
SET DMn MCCD80 Set unit n to medium capacity, 80MB
(67MB formatted)
SET DMn MSM330F Set unit n to storage module, 330MB
(300MB formatted)
Units can also be set ENABLED
or DISABLED
.
The MSM/IDC controller supports the BOOT
command.
To boot OS16/32,
the hex form of the operating system file’s extension must be placed in locations 7E:7F
.
The disk bootstrap looks for a valid OS16/32 volume descriptor in block 0,
and uses that to locate the volume directory.
It then searches the directory for a filename of the form OS16xxxx.hhh
or OS32xxxx.hhh
,
where the xxxx
is ignored and hhh
is the ASCII form of the extension from locations 7E:7F
.
The 32b bootstrap can also boot Wollongong UNIX;
locations 7E:7F
must be 0.
Note that only the MSM80 and MSM300 drives can be bootstrapped;
the boot code does not recognize the other drives.
All drives have 256 8b bytes per sector. The other disk parameters are:
Drive |
Cylinders |
Surfaces |
Sectors |
---|---|---|---|
MSM80 |
823 |
5 |
64 |
MSM300 |
823 |
19 |
64 |
MCCD16 |
823 |
1 |
64 |
MCCD48 |
823 |
3 |
64 |
MCCD80 |
823 |
5 |
64 |
MSM300F |
1024 |
16 |
64 |
The MSM/IDC disk controller implements these registers:
Name |
Size |
Comments |
---|---|---|
|
8 |
Controller status |
|
8 |
Controller buffer |
|
8 |
Current sector select |
|
8 |
Drive buffer |
|
8 |
Transfer buffer |
|
16 |
Transfer buffer point |
|
16 |
Transfer buffer length |
|
1 |
First DMA service flag |
|
2 |
Controller write data byte pointer |
|
1 |
Drive write data byte pointer |
|
5 |
Interrupt requests; right-to-left, controller, drives 0 to 3 |
|
5 |
Interrupt enables |
|
5 |
Saved interrupt requests |
|
1 |
Controller interrupt armed |
|
1 |
Drive interrupts armed, drives 0 to 3 |
|
24 |
Seek latency, per cylinder |
|
24 |
Rotational latency, per sector |
|
24 |
Inter-word latency |
Error handling is as follows:
Error |
Processed as |
---|---|
Not attached |
Disk not ready |
End-of-file |
Assume rest of disk is zero |
OS I/O error |
Report error and stop |
1.2.7. Magnetic Tape Controller (MT
)¶
Magnetic tape options include the ability to make units write-enabled or write-locked.
SET MTn LOCKED Set unit n write locked
SET MTn WRITEENABLED Set unit n write enabled
Magnetic tape units can be set to a specific reel capacity in MB, or to unlimited capacity:
SET MTn CAPAC=m Set unit n capacity to m MB (0 = unlimited)
SHOW MTn CAPAC Show unit n capacity in MB
Units can also be set ENABLED
or DISABLED
.
The magnetic tape supports the BOOT
command.
BOOT MTn
copies an autoload sequence into memory and starts it running.
The magnetic tape controller implements these registers:
Name |
Size |
Comments |
---|---|---|
|
8 |
Command |
|
8 |
Status |
|
8 |
Buffer |
|
8 |
Transfer buffer |
|
16 |
Transfer buffer pointer |
|
16 |
Transfer buffer length |
|
1 |
Transfer in progress flag |
|
1 |
First DMA service flag |
|
4 |
Interrupt requests; right-to-left, drives 0 to 3 |
|
4 |
Interrupt enables |
|
1 |
Interrupts armed, drives 0 to 3 |
|
1 |
Stop on I/O error |
|
1 |
Word transfer time |
|
1 |
Interrecord latency |
|
8 |
Unit status, drives 0 to 3 |
|
32 |
Tape position, drives 0 to 3 |
Error handling is as follows:
Error |
Processed as |
---|---|
Not attached |
Tape not ready; if |
End-of-file |
Set error flag |
OS I/O error |
Set error flag; if |
1.3. Symbolic display and input¶
The Interdata simulator implements symbolic display and input. Display is controlled by command-line switches:
|
Display byte as ASCII character |
|
Display halfword as two packed ASCII characters |
|
Display instruction mnemonics |
Input parsing is controlled by the first character typed in or by command-line switches:
|
ASCII character |
|
Two packed ASCII characters |
Alphabetic |
Instruction mnemonic |
Numeric |
Hexadecimal number |
1.3.1. 16b Instruction Input¶
Instruction input uses standard Interdata assembler syntax. There are seven instruction classes: short branch, extended short branch, short immediate, register, register-register, memory, and register-memory.
Short branch instructions have the format
sbop mask,address
where the mask
is a hex (decimal) number between 0 and F (15),
and the address is within +32 (forward branch) or -32 (backward branch) of the current location.
Extended short branch instructions have the format
sbxop address
where the address
is within +32 or -32 of the current location.
For extended short branches,
the simulator chooses the forward or backward direction automatically.
Short immediate instructions have the format
siop regnum,immed
where the register number is a hex (decimal) number,
optionally preceded by R
,
between 0 and F (15),
and the immediate is a hex digit between 0 and F.
Register instructions have the format
rop regnum
where the register number is a hex (decimal) number,
optionally preceded by R
,
between 0 and F (15).
Register-register instructions have the format
rrop regnum,regnum
where the register numbers are hex (decimal) numbers,
optionally preceded by R
,
between 0 and F (15).
Memory instructions have the format
mop address{(index)}
where address
is a hex number between 0 and 0xFFFF,
and the index
register is a hex (decimal) number,
optionally preceded by R
,
between 1 and F (15).
Register-memory instructions have the format
rmop regnum,address{(index)}
where the register number is a hex (decimal) number,
optionally preceded by R
,
between 0 and F (15),
the address
is a hex number between 0 and 0xFFFF,
and the index
register is a hex (decimal) number,
optionally preceded by R
,
between 1 and F (15).
1.3.2. 32b Instruction Input¶
Instruction input uses standard Interdata assembler syntax.
There are nine instruction classes:
short branch,
extended short branch,
short immediate,
16b immediate,
32b immediate,
register,
register-register,
memory,
and register-memory.
Addresses,
where required,
can be specified as either absolute numbers or relative to the current location
(.+n
or .-n
).
Short branch instructions have the format
sbop mask,address
where the mask
is a hex (decimal) number between 0 and F (15),
and the address is within +32 (forward branch) or -32 (backward branch) of the current location.
Extended short branch instructions have the format
sbxop address
where the address is within +32 or -32 of the current location. For extended short branches, the simulator chooses the forward or backward direction automatically.
Short immediate instructions have the format
siop regnum,immed
where the register number is a hex (decimal) number,
optionally preceded by R
,
between 0 and F (15),
and the immediate is a hex digit between 0 and F.
16b immediate instructions have the format
i16op regnum,immed16{(index)}
where the register number is a hex (decimal) number,
optionally preceded by R
,
between 0 and F (15),
the immediate is a hex number between 0 and 0xFFFF,
and the index register is a hex (decimal) number,
optionally preceded by R
,
between 1 and F (15).
32b immediate instructions have the format
i32op regnum,immed32{(index)}
where the register number is a hex (decimal) number,
optionally preceded by R
,
between 0 and F (15),
the immediate is a hex number between 0 and 0xFFFFFFFF,
and the index register is a hex (decimal) number,
optionally preceded by R
,
between 1 and F (15).
Register instructions have the format
rop regnum
where the register number is a hex (decimal) number,
optionally preceded by R
,
between 0 and F (15).
Register-register instructions have the format
rrop regnum,regnum
where the register numbers are hex (decimal) numbers,
optionally preceded by R
,
between 0 and F (15).
Memory instructions have the format
mop address{(index)} or
mop address{(index1,index2)}
where address
is a hex number between 0 and 0xFFFF,
and the index registers are hex (decimal) numbers,
optionally preceded by R
,
between 1 and F (15).
Register-memory instructions have the format
rmop regnum,address{(index)} or
rmop regnum,address{(index1,index2)}
where the register number is a hex (decimal) number,
optionally preceded by R
,
between 0 and F (15),
the address is a hex number between 0 and 0xFFFF,
and the index registers are hex (decimal) numbers,
optionally preceded by R
,
between 1 and F (15).
For memory operands,
the simulator automatically chooses the format
(RX1
, RX2
, RX3
) that consumes the fewest bytes.
If both RX1
and RX2
are feasible,
the simulator chooses RX1
.