Download Down - Omron

Transcript
Logic Instructions
7
196
Instruction Set
Name
Mnemonic
Complement
(@)COM(29)
Symbol
COM(29)
Wd
Inverts bit status of one word (Wd) of
data.
Logical AND
(@)ANDW(34)
ANDW(34)
I1
I2
R
Logically ANDs two 16-bit input words
(I1 and I2) and sets corresponding bit
in result word (R) if corresponding bits
in input words are both are ON.
Logical OR
(@)ORW(35)
ORW(35)
I1
I2
R
Logically ORs two 16-bit input words
(I1 and I2) and sets corresponding bit
in result word (R) if one or both of
corresponding bits in input data are
ON.
Function
Wd → Wd
Exclusive OR
(@)XORW(36)
XORW(36)
I1
I2
R
Exclusively ORs two 16-bit input words
(I1 and I2) and sets bit in result (R)
word when corresponding bits in input
words differ in status.
Exclusive NOR
(@)XNRW(37)
XNRW(37)
I1
I2
R
Exclusively NORs two 16-bit input
words (I1 and I2) and sets bit in result
word (R) when corresponding bits in
input words are same in status.
Operands
Wd:
IR
HR
AR
DM
LR
I1/I2:
IR
SR
HR
AR
TC
DM
LR
#
I1/I2:
IR
SR
HR
AR
TC
DM
LR
#
I1/I2:
IR
SR
HR
AR
TC
DM
LR
#
I1/I2:
IR
SR
HR
AR
TC
DM
LR
#
CPU
All models
R:
IR
HR
AR
DM
LR
All models
R:
IR
HR
AR
DM
LR
All models
R:
IR
HR
AR
DM
LR
All models
R:
IR
HR
AR
DM
LR
All models