Software and Instruction Description
Software
The desired terminal operations, that is, the logical capabilities of the display terminal will be implemented in software. This approach provides a degree of flexibility and versatility to the terminal's editing and display writing capability. In the latter area, the generation and display of characters, symbols, and graphics are limited in variety only by the resolution (60 dots per inch) and the size (8-1/2" x 8-1/2") of the display screen. The flexible nature of this approach is enhanced by the expandability of the memory to 4K (32K optional).
The software is divided into two segments: (1) servicing routines for the input modem, the output modem, the keyboard, and the display module and (2), specific function routines for line generation, editing, point generation, and character generation.
Typical software processing starts with the program in an idle loop checking the input sense line. When a bit is ready in the modem, the sense line goes true, the processor skips and the program inputs the bit. The sense line resets. The program counts the bit, saves it, and returns to an idle loop waiting for subsequent bits. As each bit is input, it is stored in proper sequence. When a word is entirely memory, it is moved to another memory location where it can be decoded. The program resets the input, counts for the next word, and transfers to the task routine which analyzes the command and determines which segment of the program is to perform the function.
For this case, assume that the program was instructed to plot a character. The program computes a table from the value of the character code. The table contains a compacted image of the dots representing the character. The image is unpacked from the table into a temporary hold area. Then, starting at the top left corner, the program outputs the coordinates and the one or zero value of the image. The next point is output in the next lower Y position. The process is repeated until 14 bits have outputted (one column). The program resets the Y coordinate to the original Y and increments the X. The next column is output the same as the first.
When nine columns have been output, the program returns to the idle loop.
Instruction Description
Instructions and data are in the form of 16 bit words. Arithmetic functions are performed in 2's complement form. The following word formats are applicable:
Instruction 0 1 3 4 15
I OP Address
Address Data 0 1 15
I Address
Data 0 1 15
S Data
The instruction format provides 1 bit to indicate indirect addressing, 3 bits for the operations code (OOP) and 12 bits for the address. The address data format contains 15 bits of address and 1 bit for indicating indirect addressing. The data word format includes 1 sign bit and 15 bits for data.
Logical control of data flow in the display processor is centered about the accumulator, with the majority of the operations involving it, or the sensing of data conditions involving the accumulator. The 19 processor operations represent 6 types of instructions:
-
Data Movement (Through the accumulator)
-
Logical operations (on accumulator contents)
-
Condition Checking
-
Input/Output
-
Jump Control
-
Indexing
Each of these instruction types are briefly discussed next. Refer to Appendix I for a complete description of the instruction set.
Data Movement Instructions - CLA, LDA, ADD, STC
These four instructions: enable the accumulator to be cleared or to be loaded with data; effect the addition of a word to the accumulator's contents; and enable the accumulator contents to be stored in memory.
Logical Operations - AND, CMP, RAL, SAL
These four instructions: enable a word in memory to be logically "anded" to the accumulator; permit the 2's complement of the accumulator's contents to be formed; enable a left rotation of the accumulator contents, and permit a left shift of the accumulator's contents to be made.
Condition Checking - SAZ, SNZ, SAC, SNA, SNO
These five instructions allow for various condition checks. SAZ and SNZ permit the accumulator to be checked for zero or non-zero contents. SAG and SNA enable any bit position in the accumulator to be checked for a 1 or 0 setting. SNO provides a check for accumulator overflow.
Input/Output - SS, DIN, DOT
The SS instruction provides a means of determining whether devices which interface with the processor (e.g., modem display module) are ready for data transfers. Actual transfer of data occurs through the accumulator, one word at a time. DIN causes one 16-bit word to be transferred from an external device to the accumulator. DOT indicates the transfer of one 16-bit word from the accumulator to an external device. The particular device DIN or DOT address is indicated by the value in the device address field of the instruction; the instructions enable controller I/O with a variety of peripheral units.
Jump Control - JMP, JSR
These instructions provide the means for altering the flow of program logic. JMP is an unconditional transfer of control to a designated memory location. JSR provides a subroutine capability to the program. The execution of a JSR instruction involves saving the return address to the jump at a designated location. By designating the store for the return address as not being in line with executed code, the program which is in execution can be held in read only memory.
Indexing - IAS
These instructions provide an indexing facility to the order code. The indexing occurs in the memory location specified in the address field of the IAS instruction; thus, multiple indexing is possible.
The above instruction types provide a fundamental but general programming capability. A basic symbolic assembly language has been built about this instruction set and is used to write programs which do character, assembler program; the assembler is written in FORTRAN language.