AND
NR RR. 14
78 1112 15
N
RX
54
7 8 11 12 15 16 19 20 31 NI 51
94
7 8 1516 1920 31
NC 55
04
L
78 1516
The logical product (AND) of the bits of the first and
second operand is placed in the first operand location. Operands are treated as unstructured logical quan­
tities, and the connective AND is applied bit by bit. All
operands and results are valid. Resulting Condition Code:
o Result is zero
1 Result not zero
2
3 Program Interruptions:
Protection (NI, NC only)
Addressing (N, NI, NC only) Specification (N only)
Programming Note
The AND may be used to set a bit to zero.
54 OR OR RR
16
78 1112 15
o RX ___ 5_6 ____ __ __ _______ 0_2 ____ o 7 8 11 12 15 16 19 20 31 01 51 ___ 96 ____ ____ 1_2 __ _____ 0_1 ____ 7 8 15 16 19 20 31 OC 55
06 L Bill? 0 1 I B2 Ijl3J -----1...J
5
"-16--
1920 31 32 35 36 47
The logical sum (OR) of the bits of the first and sec­
ond operand is placed in the first operand location. Operands are treated as unstructured logical quan­
tities, and the connective inclusive OR is applied bit by
bit. All operands and results are valid.
Resulting Condition Code:
o Result is zero
1 Result not zero
2
3 Program Interruptions:
Protection (01, oc only)
Addressing (0, 01, oc only)
Specification (0 only)
Programming Note
The OR may be used to set a bit to one.
Exclusive OR XR RR I 17 R1 R2 0 78 11 12 15
X RX I 57 R1
X
2
B2 D2 0 7 8 11 12 1516 1920 31 XI 51 97
7 8 1516 1920 31
XC 55 D7 L
B1 I B2 78 1516 1920 31 32 35 36 47
The modulo-two sum (exclusive OR) of the bits of the
first and second operand is placed in the first operand
location. Operands are treated as instructured logical quanti­
ties, and the connective exclusive OR is applied bit by
bit. All operands and results are valid.
The instruction differs from AND and OR only in the
connective applied.
Resulting Condition Code:
o Result is zero
1 Result not zero
2
3
Program Interruptions:
Protection (XI, XC only)
Addressing (x, XI, xc only)
Specification (x only)
Programming Note
The exclusive OR may be used to invert a bit.
Test Under Mask
TM 51 91
78 1516 1920 31
The state of the first operand bits selected by a mask
is used to set the condition code.
The byte of immediate data, 12, is used as an eight­
bit mask. The bits of the mask are made to correspond
one for one with the bits of the character in storage
specified by the first operand address.
A mask bit of one indicates that the storage bit is
selected. When the mask bit is zero, the storage bit is
ignored. When all storage bits thus selected are zero,
the condition code is made O. The code is also made
o when the mask is all-zero. When the selected bits
are all-one, the code is made 3; otherwise, the code is
made 1. The character in storage is not changed.
Resulting Condition Code:
o Selected bits all-zero; mask is all-zero
1 Selected bits mixed zero and one
2
3 Selected bits all-one
Program Interruptions:
Addressing. Insert Character IC RX
43
7 8 11 12 15 16 19 20 31
The eight-bit character at the second operand address
is inserted into bit positions 24-31 of the register spe­
cified as the first operand location. The remaining bits
of the register remain unchanged.
The instruction is storage to general register. The
byte to be inserted is not changed or inspected.
Condition Code: The code remains unchanged.
Program Interruptions: Addressing.
Store Character 5TC RX
42
7 8 11 12 15 16 19 20 31
Bit positions 24-31 of the register designated as the
first operand are placed at the second operand ad­
dress.
The instruction is general register to storage. The
byte to be stored is not changed or inspected.
Condition Code: The code remains unchanged.
Program Interruptions:
Protection
Addressing
Logical Operations 55
Previous Page Next Page