Preliminary Specifications: Programmed Data Processor Model Three (PDP-3) October, 1960, Digital Equipment Corporation [book club suggestions .txt] 📗
- Author: Digital Equipment Corporation
- Performer: -
Book online «Preliminary Specifications: Programmed Data Processor Model Three (PDP-3) October, 1960, Digital Equipment Corporation [book club suggestions .txt] 📗». Author Digital Equipment Corporation
Writing Program
As an example, a program to write k words in binary format from storage beginning in register A, using tape unit number 04, is shown. The following program is written in standard FRAP language. The program begins in register enterwrite.
enterwrite mec ,clear flags initially mwb 400 ,73000000464 lir x/-k+1 ,initialize index register x b lio x/a+k-1 ,begin loop mps ,wait for TC then write C(Z) jmp c ,error spx x/1 ,add 1 to index register x jmp b ,return of loop jmp done ,record written c mec ,tape error ril 1 spi jmp rwcstop ,read-write error or tape fault ril 1 spi jmp b+3 ,tape end hlt ,tape parity done ,resume programmingReading Information
Information is read by giving the MRA or MRB order. Almost 10 ms. is available after a read order is given before information actually enters the TC buffer.
To read a record of unknown length, the read order is first given. The MPS order halts the program until six characters are assembled in the TC information buffer. The next instruction after the MPS, a jump instruction, transfers control from the loop when any flag is set. The next instruction deposits the IO. The record length is determined by not skipping after the MPS order on the setting of the end of record flag. The read-write check flag or the end of record flag is then interrogated to see that the tape is actually at the end of record. If a tape is not at the end of record, then the tape is either at the end of the reel, or a parity check has occurred.
Reading Program
Program to read j binary words into storage beginning in register d, using tape unit 10, j is unknown. The program begins in register enteread.
enteread mec ,clear flags initially mrb 1000 ,730000001060 dzm x ,put zero in memory location x e mps jmp outcheck dio x/d ,store in location modified by x snx x/+1 ,add 1 to C(x) jmp e outcheck mec ,examine flags spi ,end of record? jmp recordend ,yes hlt ,error recordend snx x/+1 ,to find value of j " ,resume programming C(IA) = j " " "Forward Spacing
Forward spacing is done by giving an MRB or MRA order. This moves the tape forward with the read-write head positioned at the end of the following record. If n read orders are given, the tape is spaced forward n records. By giving the MEC order, parity flags are examined to see that information on tape has been read correctly.
Backspacing
By giving an MBA or MBB order the tape is moved backwards a record with the read-write heads positioned in the previous end of record gap. The end of record flag is set when the tape has moved backwards a record.
Rewinding
Rewinding is accomplished by giving the rewind order, move tape to load point, MLP. The rewind order starts a unit rewinding and does not tie up the TC. If a motion command is given which calls for a unit that is rewinding, the command is executed, but the action will not take place until the unit is available.
Unit Availability
A unit is unavailable to the program under the following conditions:
Unit is rewinding. Tape is improperly loaded. Cover door open. Unit overloaded. Unit under manual control. Power off.A selected but unavailable unit holds up the TC if a motion order is given for the unit. The TC will be held up until the unit is ready.
Flag Positions
IO Bit Flag 0 EOR — End of record 1 RWF — Read-Write 2 EOT — End of Tape 3 ParityConnection with High Speed Channel
The high speed channel directs the tape control, and word transfer, just as a program would. A unit is first started reading or writing. The high speed channel is given the memory location of the information, and the number of registers the words read or written will occupy. The channel effects the information transfer. Thus, a high speed channel connected to a tape control handles the programming for the unit word transfers.
Completion of the block transfer is signified by either setting a program flag, or entering the sequence break.
Connection with Sequence Break System
When the TC is connected to the Sequence Break System, the program is automatically interrupted each time an MPS command needs to be given.
Programming is unaffected during reading and a record may be read with no flags set. The TC initiates breaks so that an MPS may be given in time.
Similarly, the break is initiated during writing each time an MPS needs to be given.
Motion Command Summary
Time before first MPS Time between MPS's Time after End of Record to deselect Flags that may be set MWAMWB 3 ms. 400 us.
(longer time causes deselection) 10 ms. RWF (if unit is deselected and MPS given, or unit becomes unavailable), Parity, EOT. MRA
MRB 7 ms. 400 us.
(longer time misses information, and rwc set) 5 ms. RWF, (if information is missed, or unit becomes unavailable), EOT, EOR, Parity. MBA
MBB — — 10 ms. RWF (if unit becomes unavailable), EOR, EOT. CATHODE-RAY-TUBE DISPLAY
The PDP-3 Cathode Ray Tube Display is useful for presentation of graphical or tabular information to the operator. It uses a 16 inch round tube with magnetic deflection. For each In-Out transfer order, one point is displayed at the position indicated by the In-Out Register. Bits 0-9 of the IO indicate the X coordinate of the position, and bits 18-27 indicate the Y coordinate. The display takes 60 microseconds.
An additional display option is a Light Pen. By use of this device the computer is signaled that the operator is interested in the last point displayed. Thus the program can take appropriate action such as changing the display or shifting operation to another program.
A smaller display is available. This display uses a five inch, high resolution cathode ray tube. The tube is equipped with a mounting bezel to accept a camera or photomultiplier device. The operation of this display is similar to that of the 16 inch, except that 12 bits are decoded for each axis.
REAL TIME CLOCKA special input register may be connected to operate as a Real Time Clock. This is a counting register operated by a crystal controlled oscillator. The clock can be reset to zero by manual operation. A toggle switch interlock prevents an accidental reset. The state of this counter may be read at any time by the appropriate In-Out Transfer instruction.
LINE PRINTERA 72 column Anelex printer and control are available as an option for PDP-3. The control contains a one line buffer. This buffer is cleared by the completion of an order to space the paper one position (psp). The buffer is filled from the In-Out Register by a succession of 12 load buffer orders (plb). The first plb will put the six characters represented by C(IO) in the leading (left-hand) column positions of the buffer. After the buffer is loaded, the order, print (pnt), is given.
UTILITY PROGRAMS FRAP-3 — The Assembly ProgramAn assembler or compiler prepares a machine language tape suitable for direct interpretation by the computer from a program tape in operator language. Generally speaking, one statement accepted by FRAP produces one instruction for the machine. A single statement written for the PDP-3 compiler, DECAL-3, may cause several instructions to be written. Thus, FRAP causes a 1 for 1 mapping of instructions for statements while DECAL may produce many instructions from one statement.
In addition to allowing program tapes to be prepared with off line equipment, an assembly program has other functions. Normally, the machine would require 36 bits or 12 octal digits to be written for each instruction used in the machine. FRAP allows mnemonic symbols to be used for the instructions. These mnemonic symbols aid the programmer by representing the instruction in an easily remembered form.
In addition to allowing mnemonic symbols to represent the instructions, variable length sequences of alphanumeric characters may be used to represent memory addresses in symbolic form. The assembly program does the address bookkeeping for the programmer. A short example of a FRAP program is on Page 29.
Since few characters limit or control the format of instructions written in FRAP-3 language, it is possible to write instructions in almost any format or style.
FRAP-3 may also be used to prepare tapes for interpretive programming, since arbitrary definitions for operation code symbols are permitted.
A feature useful both for ease of programming and for machine simulation is the ability to call for a series of instructions (macro-instruction) to be written. Frequently used instruction sequences thus need only to be defined once.
DECAL — The Compiler ProgramDECAL-3 (Digital Equipment Compiler, Assembler, and Linking loader for PDP-3) is an integrated programming system for PDP-3. It incorporates in one system all of the essential features of advanced assemblers, compilers, and loaders.
DECAL is both an assembler and compiler. It combines the one-to-one translation facilities of an assembler, and the one-to-many translation facilities of a formula translation compiler. Problem oriented language statements may be freely intermixed with symbolic machine language instructions. A flexible loader is available to allow the specification of program location at load time. The programmer may specify that certain variables and constants are "systems" variables and constants. The symbols so defined are universally used in a system of many routines. Thus, communications between parts of a major program is facilitated even though these parts may be compiled separately. Storage requirements for a large program are lessened by this technique.
DECAL is an open-ended programming system and can be modified without a detailed understanding of the internal operation. This is achieved by means of a recursive definition facility based on a skeleton compiler with a small set of logical capabilities. The skeleton compiler acts as a bootstrap for introducing more sophisticated facilities.
The compiler will be delivered with a fully defined subset of formula translation operators. Additional subsets may be defined by the user to best fit his source language.
FLOATING POINT SUBROUTINESA set of subroutines are provided with the PDP-3 to perform floating point arithmetic. In these, the PDP-3 36 bit word is divided to form a 27 bit mantissa, a, and 9 bit exponent, b. Numbers, thus, appear in the form: k = ax2b where, a, is considered to be in fractional form in the range ½ ≤ a < 1, and b is an integer, 0 ≤ b < 29. This gives number, k, the range 10-76 < k < 10+76.
The subroutines are called with one operand in the accumulator. After the subroutine has been executed, the accumulator contains the answer. Thus floating point numbers are essentially handled as regular logical works. The format of the number allows magnitude comparisons to be made by conventional arithmetic as bit 0 is the sign of the number, bits 1 to 9 the exponent, and the remaining 26 bits, together with the sign bit, the mantissa in ones complement arithmetic. The arithmetic subroutines are: add, subtract, multiply, divide, convert a floating point number to binary, convert a binary number to a floating number. Additional routines form: √x, ex, ln x, sine(π⁄2)x, cos(π⁄2)x, tan-1x. There are also programs to convert between floating decimal numbers and PDP-3 floating numbers.
Routines which require two operands, e.g., add, subtract, multiply and divide, require an index register to specify the address of the second operand. An index register also specifies parameters in data conversions, e.g., the position of the binary point when converting
Comments (0)