Appendix I DS-1 Instruction Set
The following instructions are provided;
The execution item for instructions having indirect addressing (optional with instruction marked*) requires one cycle for each indirect level.
LDA, A, I Load Word 0 1 2 3 4 15
I 0 0 0 A
This instruction loads the contents of address A into the accumulator. The previous contents are lost. The program counter is indexed by 1.
Time = 1 cycle*
0 1 2 3 4 15
JMP, A, I, Jump I 0 0 1 A
This instruction causes program control to be transferred to the address A. The contents of the accumulator are not altered.
Time = 1 cycle*
0 1 2 3 4 15
JSR, A, I, Jump & Save I 0 1 1 A
Return
This instruction stores the present address plus 1 at the location specified by the contents of memory location A and transfers program control to location A+1. The accumulator is cleared.
Time = 3 cycles*
0 1 2 3 4 15
ADD, A, I, Add I 0 1 0 A
This instruction adds the contents of memory at location A to the accumulator. The overflow indicator is set to the appropriate state and remains set until the next ADD, IAS, or CLA instruction is processed.
Time = 2 cycles*
0 1 2 3 4 15
AND, A, I And I 1 0 0 A
The instruction ands logically the contents of the accumulator with the data stored in Location A. The results is stored in the accumulator.
Time = 2 cycles*
0 1 2 3 4 15
STA, A, I Store I 1 0 1 A
Accumulator
This instruction stores the contents of the accumulator in memory Location A.
Time = 2 cycles*
IAS, A, I Index & Skip 0 1 2 3 4 15
If Zero I 1 1 0 A
This instruction reads the contents of memory location A and adds 1 to it. The results are then stored back in location A of the memory. If the results of the addition is zero (i.e., an overflow generated) the next instruction is skipped. Otherwise, the next instruction is executed. The accumulator contains the contents of A plus 1.
Time = 3 cycles*
0 1 2 3 4 5 6 7 8 11 12 15
SAL, N Shift 0 1 1 1 0 0 0 0 n
Accumulator Left
This instruction shifts the contents of the accumulator left by n bits, the least significant bits become zero.
Time = 1 cycle*
0 1 2 3 4 5 6 7 8 11 12 15
RAL, N Rotate 1 1 1 1 0 0 0 0 n
Accumulator Left
This instruction rotates the contents of the accumulator left by n bits. The most significant bit becomes the initial least significant bit.
Time = cycle*
0 1 2 3 4 5 6 7 8 15
HLT, Halt 0 1 1 1 1 0 0 1
This instruction causes program execution to stop. Used primarily for debugging purposes, depression of the RUN button or SINGLE CYCLE button causes continued execution either continuous or one cycle respectively.
Time = 1 cycle*
0 1 2 3 4 5 6 7 8 15
SAZ Skip Accumulator 0 1 1 1 0 1 0 0
Zero
This instruction causes the next instruction to be skipped if the accumulator is zero.
Time = 1 cycle*
0 1 2 3 4 5 6 7 8 15
SNZ Skip Accumulator 1 1 1 1 0 1 0 0
Non-Zero
This instruction causes the next instruction to be skipped if the accumulator is non-zero.
Time = 1 cycle*
0 1 2 3 4 5 6 7 8 11 12 15
SAC, B Skip 1 1 1 1 0 1 0 1 B
Accumulator
This instruction causes the next instruction to be skipped if bit number B is one (1). The most significant bit is zero and the least significant is 15.
Time = 1 cycle*
0 1 2 3 4 5 6 7 8 15
SNO Skip No 1 1 1 0 0 0 0
Overflow
This instruction causes the skipping of the next instruction if the overflow is not set.
Time = 1 cycle*
0 1 2 3 4 5 6 7 8 15
CMP Complement 1 1 1 0 0 1 1
Accumulator
This instruction stores the 2's complement of the accumulator in the accumulator.
Time = 1 cycle*
0 1 2 3 4 5 6 7 8 11 12 15
DOT Data Output 1 1 1 0 0 0 1 Add Func.
This instruction causes the contents of the accumulator to be gated to the DIO Data buss and a Data Output Strobe (DOS) pulse to be transmitted to the peripheral device. This pulse is used by the device to store the contents of the Standard I/O Buss. The device Address and Function data is transmitted simultaneous with data.
Time = 1 cycle*
0 1 2 3 4 5 6 7 8 11 12 15
DIN Data Input 1 1 1 1 1 0 0 Add Func.
This instruction causes the device address and function data to be transmitted as in the DOT instruction. Upon detection of this address, function and DATA Input Strobe (DIS), the device gates its data onto the Standard I/O Buss. The deactivation of the Data Input Strobe indicates that the data has been received and stored.
Time = 1 cycle*
0 1 2 3 4 5 6 7 8 9 10 11 13 14 15
INR Interrupt 0 1 1 1 1 1 1 1 0 0 0 L 0 0
Return
This instruction causes the Program Counter, the Accumulator, and the Overflow indicator to be restored to the conditions prior to servicing the present active level. Parameter L must be set to the level being processed for correct return linkage. The interrupt is returned to the idle state. See pages 3-3 and 3-4.
Time = 4 cycles*
0 1 2 3 4 5 6 7 8 15
MSK Mask Interrupts 1 1 1 1 1 1 1 0
This instruction causes the interrupt system to be inhibited from causing any interrupt to be processed. Interrupts waiting or received while interrupts are masked will be processed when they are unmasked. See pages 3-3 and 3-4.
Time = 1 cycle*
0 1 2 3 4 5 6 7 8 15
UNM Unmask Interrupts 0 1 1 1 1 1 1 0
This instruction causes the interrupt system to be processed in the normal manner. See pages 3-3 and 3-4.
Time = 1 cycle*
* Please see the PDF file for figures and missing text (not legible in the original).