Y C ompare Left (COM)
General Description
This instruction is used to determine the relative magnitude of two operands of equal length. The resulting PR1
settings permit alternate sequence of action.
Format
Operation —Y
N
— Number (0-44) characters to be compared. (See Appendix F-I.)
A Address — HSM address of leftmost character of first operand.
B Address — HSM address of leftmost character of second operand.
Direction of Operation
Left to right.
Outline of Operation
This instruction initially sets PRZ and operates in the following cycles:
The contents of the N Register are examined. If zero, the instruction terminates. If other than zero, the contents
of the HSM locations specified by the A and B Registers are transferred to the D
2
and D
:!
positions of the D
Register respectively. The contents of the A and B Registers are incremented by one. The contents of D
2
and D
:
are compared. If the contents of D
2
are greater than the contents of D
(
, PRP is set, and the instruction terminates.
If the contents of D, are greater than the contents of D
2
, PRN is set, and the instruction terminates. If the contents
of D. equal the contents of D„ the contents of the N Register are decremented by one, and the cycle is repeated.
Final Register Contents
(A)
t
= Address of location one to the right of the last character compared in first operand.
(B)
r
= Address of location one to the right of the last character compared in second operand.
PRI
PRI set according to outline of operation.
'
! v\ \ t > a i
CK,
V 1®
\
"R*.
I
^
>
Timing
Total time in microseconds
= 2In + 35, where n equals the number of characters compared.
Example #1
Instruction:
Operation
N
A Address
B Address
Y
5
1001
1007
HSM before and after Instruction is Executed:
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
s
M
I
T
H
—
s
M
I
T
H
—
VII-7
Содержание 301
Страница 6: ...HRSfOTPflf I I I I ...
Страница 16: ......
Страница 34: ......
Страница 43: ......
Страница 44: ......
Страница 47: ......
Страница 48: ......
Страница 61: ......
Страница 62: ......
Страница 74: ......
Страница 75: ......
Страница 76: ...j I j I I ...
Страница 86: ......
Страница 87: ......
Страница 88: ......
Страница 108: ......
Страница 109: ......
Страница 110: ......
Страница 126: ......
Страница 127: ......
Страница 128: ...X ry V ...
Страница 134: ......
Страница 135: ...INPUT OUTPUT INSTRUCTIONS DATA RECORD FILE INPUT OUTPUT INSTRUCTIONS DATA RECORD FILE XI l ...
Страница 136: ......
Страница 154: ......
Страница 156: ......
Страница 175: ......
Страница 176: ......
Страница 180: ...WWH H i i w m H H J V fi t y v if i Hk I ...
Страница 182: ......
Страница 195: ......
Страница 234: ......
Страница 235: ...d STZ i T J t A p r TTqpe Deivc i L J I 1 G_ F O N _ _ O u I p y f 7 e i o o n p i uj e To o u r p e j C eu ...