Default non-standard RWC assigment

By default, this implementation does not follow the various Honeywell documentation for specific Read/Write Channels and combinations. Instead, there are 16 fully independent RWCs, with the SLCs (C1 character) numbered 10-17 and 30-37 (CLCs numbered 00-07 and 20-27, respectively). Buffered mode is ignored (bit 40), as is bit 10, so if PDT/PCB instructions expect to use different RWCs then the bits 27 must be unique. PCB instructions may select "no RWC" by using the value 00 or 77. This requires that the value 10 (or 40 or 50) be used to select CLC/SLC 00. Use of 00 or 77 on a PDT instruction will not work.

Standard Honeywell RWC assigment

As an option, the traditional Honeywell mapping of RWC variant character to CLC/SLC registers may be selected. Passing "rwc=map" on the commandline when invoking the simulator will switch to Honeywell mapping. This may be required when running legacy code that makes assumptions about the relationship between the variant character and CLC/SLC registers. Note that "interlock" is still ignored, in the sense that multiple channels are not actually consumed. The primary CLC/SLC is used to perform the I/O. It is not clear if CLC/SLC(s) for the secondary interlocked channel(s) were affected in these cases. A table showing the mapping of variant character to CLC register is found at the end of this page.

General RWC behavior

Simultaneity will exceed that of the original hardware, but should be compatible with any existing software. Also, the degree of simultaneity of specific peripherals is not clear from the documentation available, so best-guesses are made. For example, the magnetic tape drives seem to be completely independent of the control, and so full simultaneity is achieved by using a separate RWC for each drive. However, the disk drives seem to be dependent on resources in the control (unit selection, address register) and thus only one PDT may be active on that control at a time, providing no drive simultaneity. The original hardware may have provided simultaneity for head movement operations (e.g. seek cylinder), but those operations are instantaneous in this implementation.

RWCs are implemented as independent threads. This means a PDT instruction will actually complete before the I/O operation completes, just like original hardware. In addition, the I/O operation, running in the "background" thread, no longer has a guaranteed program context (address mode, relocation, etc). This is why the CLC and SLC registers contain physical addresses. In nearly all cases it is required the issue a PCB instruction to wait for completion, although it is up to the programmer whether that wait is done immediately after the PDT or before the next PDT on the same channel (or in some polling fashion).

The association between channel and perihperal is established when the PDT instruction is executed, and dissolved once the peripheral operation completes (RWC thread terminates). It is not known how a programmer, in a multiprogramming environment, ensures that a RWC does not get re-used between the time an operation completes and the program queries the status with PCB.

For many peripherals, it is possible to return less input data than requested. A program can query the CLC register to determine this, however since these registers contain physical addresses it will normally be necessary to subtract SLC from CLC to yield the length of transfer for comparison.

In the case that a request buffer (RM in memory) was not large enough to contain the peripheral record (typically for Console, Mag Tape, and Disk), the CLC will be pointing to one character past the RM character. To summarize:

None of these conditions are considered errors, from the peripheral's perspective. Also, a condition where 0 characters are transferred (CLC == SLC) may exist. If no error was reported by the perihperal, this condition usually means "end of file" (or some other controlled end-of-data condition). Typically, this is for Magnetic Tape and Disk Drives. A 0-length transfer for Console input, for example, would mean the operator simply pressed Carriage Return (entered an empty line).

Standard Honeywell RWC Mapping

00none--  2020*  40RWC 2'06  60RWC 800
01RWC 4'25  2121*  41RWC 1'05  61RWC 9'24
02RWC 5'+26  22RWC 8+00  42RWC 2'06  62RWC 8+00
03RWC 6'+27  23RWC 9+20  43RWC 3'07  63RWC 9+20
04RWC 6'27  2424*  44RWC 3'07  64RWC 920
05RWC 6'27  2525*  45RWC 3'07  65RWC 920
06RWC 6'27  26RWC 8'04  46RWC 3'07  66RWC 920
07RWC 5'26  27RWC 9'24  4707*  6727*
1000*  3020*  50RWC 202  70RWC 522
11^RWC 101  31^RWC 421  51^RWC 1+01  71^RWC 4+21
12^RWC 202  32^RWC 522  52^RWC 2+02  72^RWC 5+22
13^RWC 303  33^RWC 623  53^RWC 3+03  73^RWC 6+23
1404*  3424*  54RWC 3+03  74RWC 6+23
15^RWC 1'05  35^RWC 4'25  55RWC 3+03  75RWC 6+23
16^RWC 2'06  36^RWC 5'26  56RWC 3+03  76RWC 6+23
17^RWC 3'07  37^RWC 6'27  5707*  77none--

+RWC interlock (not used in simulation)
*For compatability with direct assignment (not a valid Honeywell variant)
^variant uses same CLC/SLC for both mapped and direct schemes