
561
APPENDIX B Instructions
Note:
Count Correction Values for Counting Execution Cycles" for information on (a) to (d) in the
table.
Table B.8-8 39 Logic 1 Instructions (byte, word)
Mnemonic
#
RG
B
Operation
L
H
A
H
IS
T
N
Z
V
C
R
M
W
AND
OR
XOR
NOT
A,#imm8
A,ear
A,eam
ear,A
eam,A
A,#imm8
A,ear
A,eam
ear,A
eam,A
A,#imm8
A,ear
A,eam
ear,A
eam,A
A
ear
eam
2
2+
2
2+
2
2+
2
2+
2
2+
2
2+
1
2
2+
2
3
4+(a)
3
5+(a)
2
3
4+(a)
3
5+(a)
2
3
4+(a)
3
5+(a)
2
3
5+(a)
0
1
0
2
0
1
0
2
0
1
0
2
0
2
0
(b)
0
2×(b)
0
(b)
0
2×(b)
0
(b)
0
2×(b)
0
2×(b)
byte (A) <-- (A) and imm8
byte (A) <-- (A) and (ear)
byte (A) <-- (A) and (eam)
byte (ear) <-- (ear)and (A)
byte (eam) <-- (eam)and (A)
byte (A) <-- (A) or imm8
byte (A) <-- (A) or (ear)
byte (A) <-- (A) or (eam)
byte (ear) <-- (ear)or (A)
byte (eam) <-- (eam)or (A)
byte (A) <-- (A) xor imm8
byte (A) <-- (A) xor (ear)
byte (A) <-- (A) xor (eam)
byte (ear) <-- (ear)xor (A)
byte (eam) <-- (eam)xor (A)
byte (A) <-- not (A)
byte (ear) <-- not (ear)
byte (eam) <-- not (eam)
-
*
R
-
*
-
*
-
*
-
*
ANDW
ORW
XORW
NOTW
A
A,#imm16
A,ear
A,eam
ear,A
eam,A
A
A,#imm16
A,ear
A,eam
ear,A
eam,A
A
A,#imm16
A,ear
A,eam
ear,A
eam,A
A
ear
eam
1
3
2
2+
2
2+
1
3
2
2+
2
2+
1
3
2
2+
2
2+
1
2
2+
2
3
4+(a)
3
5+(a)
2
3
4+(a)
3
5+(a)
2
3
4+(a)
3
5+(a)
2
3
5+(a)
0
1
0
2
0
1
0
2
0
1
0
2
0
2
0
(c)
0
2×(c)
0
(c)
0
2×(c)
0
(c)
0
2×(c)
0
2×(c)
word (A) <-- (AH) and (A)
word (A) <-- (A) and imm16
word (A) <-- (A) and (ear)
word (A) <-- (A) and (eam)
word (ear) <-- (ear)and (A)
word (eam) <-- (eam)and (A)
word (A) <-- (AH) or (A)
word (A) <-- (A) or imm16
word (A) <-- (A) or (ear)
word (A) <-- (A) or (eam)
word (ear) <-- (ear)or (A)
word (eam) <-- (eam)or (A)
word (A) <-- (AH) xor (A)
word (A) <-- (A) xor imm16
word (A) <-- (A) xor (ear)
word (A) <-- (A) xor (eam)
word (ear) <-- (ear)xor (A)
word (eam) <-- (eam)xor (A)
word (A) <-- not (A)
word (ear) <-- not (ear)
word (eam) <-- not (eam)
-
*
R
-
*
-
*
-
*
-
*