3.27 Application instructions
Application instructions are used when special processing is required.
3.27.1 Logical Operation Instructions
(1) The logical operation instructions are instructions which perform the logical
operations such as logical add and logical product.
(2) The logical operation instructions are available in the following 10 types.
Instruction
Classification
Symbol
WAND
Logical
product
WANDP
WOR
Logical add
WORP
REMARKS
The logical operation instructions perform the following processings in units of one bit.
Classification
Logical product
Logical add
Exclusive OR
Exclusive NOR
Classification
Exclusive OR
Exclusive
NOR
Processing
Set to 1 only when both inputs A
and B are 1. Set to 0 otherwise.
Set to 0 only when both inputs A
and B are 0. Set to 1 to 1
otherwise.
Set to 0 when inputs A and B are
equal. Set to 1 when they are
different.
Set to 1 when inputs A and B are
equal. Set to 0 when they are
different.
Instruction
Classification
Symbol
WXOR
complement
WXORP
(Sign reversal)
WXNR
WXNRP
Operation
Expression
Y=A•B
Y=A+B
Y=A•B+A•B
Y= (A+B) (A+B)
Application instructions
Instruction
Symbol
2's
NEG
NEGP
Example
A
B
Y
0
0
0
0
1
0
1
0
0
1
1
1
0
0
0
0
1
1
1
0
1
1
1
1
0
0
0
0
1
1
1
0
1
1
1
0
0
0
1
0
1
0
1
0
0
1
1
1
3
155