Logical Instructions; Cant Word, (R); Word, (R) = Ed; Obit 0 Of Register R Is A 0 And Bit Positions - Xerox Sigma 6 Reference Manual

Table of Contents

Advertisement

ClR
~
!
2
39
COMPARE WITH LIMITS IN REGISTERS
(Word index alignment)
J!4
5
COMPARE WITH LIMITS IN REGISTERS simultaneously com-
pares the effective word with the contents of register Rand
with the contents of register Ru 1 (with all three words treated
as signed fixed-point quantities), and sets the condition
code according to the results of the comparisons.
Affected: CC
(R) : EW, (Ru 1) : EW
Condition code settings:
o
o
elM
2
o
J
o
3
4
o
0
o
1
1
0
Result of Comparison
contents of R equal to effective word
contents of R less than effective word
contents of R greater than effecti ve word
contents of Ru 1 equal to effecti ve word
contents of Ru 1 less than effective word
contents of Ru 1 greater than effective word
COMPARE WITH LIMITS IN MEMORY
(Doubleword index alignment)
COMPARE WITH LIMITS IN MEMORY simultaneously com-
pares the contents of register R with the 32 high-order bits
of the effective doubleword and with the 32 low-order bits
of the effective doubleword, with all three words treated
as 32-bit signed quantities, and sets the condition code
according to the results of the comparisons.
Affected: CC
(R)
=
ED
O
_
31
; (R) : ED
32
-
63
Condition code setti ngs:
2
3
4
Result of
Com~arison
0
0
contents of R equal to most significant
word, (R)
=
ED
O
_
31
0
contents of R less than most significant
word, (R)
<
ED 0-31
0
contents of R greater than most signifi-
>
_
31
0
0
contents of R equal to least significant
0
contents of R less than least significant
word, (R)
<
ED 32-63
0
contents' of R greater than I east signifi-
cant word, (R)
>
ED
32
_
63
46
Logical Instructions
LOGICAL INSTRUCTIONS
All logical operations are performed bit by corresponding
bit between two operands; one operar d is in register Rand
the other operand is the effective word.
The result of the
logical operation is loaded into register R.
OR
OR WORD
(Word index alignment)
49
I
R
I
X
I :
Referenc~
address
i
"
• '" " " " " " " " " ..
I~
" "
n"" " "
vl~ ~
• "
o
I
2
OR WORD logically ORs the effective word into register R.
If corresponding bits of register R and the effective word are
both 0, a 0 remains in register R; otherwise, a 1 is placed in
the corresponding bit position of register R. The effective
word is not affected.
Affected: (R), CC3, CC4
(R) u EW -
R, where 0 u 0 = 0, 0 u 1 = 1, 1 u 0
=
1, 1 u 1
=
1
Condition code settings:
2
3
4
Resul t in R
o
0
zero
o
bit 0 of register R is a 1
EOR
EXCLUSIVE OR WORD
(Word index alignment)
o
I
2
EXCLUSIVE OR WORD I ogical/y exclusive ORs the effective
word into register R.
If
corresponding bits of register Rand
the effective word are di fferent, a 1 is placed in the corre-
sponding bit position of register R; if the contents of the
corr<:!sponding bit positions are alike, a 0 is placed in the
corresponding bit position of register R.
The effective word
is not affected.
(R)@EW--- R, where O@O = 0, 0@1 = 1,
1@0=1, 1@1=0
2
3
4
Result in R
o
0
zero
Obit 0 of register R is a 0 and bit positions
AND
AND WORD
0/'Iord index alignment)
o
I
2
AND WORD logically ANDs the effective word into register
R.
If
corresponding bits of register R and the effective word

Advertisement

Table of Contents
loading

Table of Contents