K
Locate Symbol Left (LSL)
General Description
This instruction searches through the contents of successive HSM locations between and including, two specified
addresses. The operation ceases when the rightmost location is reached or upon detecting a non-selected symbol.
Format
Operation — K.
N
— Selected symbol.
A Address — Leftmost HSM location to be searched.
B Address — Rightmost HSM location to be searched.
Direction of Operation
Left to right.
Outline of Operation
. , This instruction initially sets PRZ, and operates in the following cycle:
The contents of the A Register are placed in the Memory Address Register. The contents of the A Register are
compared with the contents of the B Register and if this comparison proves equal ABE (A-B Equality) is set; if the
comparison proves unequal ABE is not set. The contents of the A Register are incremented by one.
The contents of the HSM location specified by the Memory Address Register are compared with the contents of
the N Register.
(1) If this comparison proves unequal, and the contents of the Memory Address Register are equal to A
i(
PRN is
set, the contents of the A Register are decremented by two, and the instruction terminates.
(2) If this comparison proves unequal, and the contents of the Memory Address Register are not equal to A
i;
PRP is set, the contents of the A Register are decremented by two, and the instruction terminates.
(3) If this comparison proves equal and ABE is set, the contents of the A Register are decremented by one, and
the instruction terminates.
(4) If this comparison proves equal and ABE is not set, the cycle is repeated.
Standard Location
STA (0212-0215)
Final Register Contents
If a character is found not equal to N
(A)
t
= One HSM address to the left of that character.
(B)
f
= (B),
If all characters searched are equal to the contents of N
(A)
f
= (B)
i
(B), = (B) j
PRN is set when the first character searched is not equal to the contents of N.
PRZ is set when all characters searched are equal to the contents of N.
PRP is set if a non-selected symbol is found in the specified HSM area after a character equal to the contents of
N has been found.
Timing
Total time in microseconds
— I 4n + 56.
n = number of characters searched.
V-5
Summary of Contents for 301
Page 6: ...HRSfOTPflf I I I I ...
Page 16: ......
Page 34: ......
Page 43: ......
Page 44: ......
Page 47: ......
Page 48: ......
Page 61: ......
Page 62: ......
Page 74: ......
Page 75: ......
Page 76: ...j I j I I ...
Page 86: ......
Page 87: ......
Page 88: ......
Page 108: ......
Page 109: ......
Page 110: ......
Page 126: ......
Page 127: ......
Page 128: ...X ry V ...
Page 134: ......
Page 135: ...INPUT OUTPUT INSTRUCTIONS DATA RECORD FILE INPUT OUTPUT INSTRUCTIONS DATA RECORD FILE XI l ...
Page 136: ......
Page 154: ......
Page 156: ......
Page 175: ......
Page 176: ......
Page 180: ...WWH H i i w m H H J V fi t y v if i Hk I ...
Page 182: ......
Page 195: ......
Page 234: ......