Hitachi H8/3008 Hardware Manual page 504

16-bit microcomputer
Table of Contents

Advertisement

3. Logic instructions
Mnemonic
AND.B #xx:8, Rd
AND.B Rs, Rd
AND.W #xx:16, Rd
AND.W Rs, Rd
AND.L #xx:32, ERd
AND.L ERs, ERd
OR.B #xx:8, Rd
OR.B Rs, Rd
OR.W #xx:16, Rd
OR.W Rs, Rd
OR.L #xx:32, ERd
OR.L ERs, ERd
XOR.B #xx:8, Rd
XOR.B Rs, Rd
XOR.W #xx:16, Rd
XOR.W Rs, Rd
XOR.L #xx:32, ERd
XOR.L ERs, ERd
NOT.B Rd
NOT.W Rd
NOT.L ERd
488
Addressing Mode and
Instruction Length (bytes)
B
2
B
2
W
4
W
2
L
6
L
4
B
2
B
2
W
4
W
2
L
6
L
4
B
2
B
2
W
4
W
2
L
6
L
4
B
2
W
2
L
2
Operation
Rd8∧#xx:8 → Rd8
Rd8∧Rs8 → Rd8
Rd16∧#xx:16 → Rd16
Rd16∧Rs16 → Rd16
ERd32∧#xx:32 → ERd32
ERd32∧ERs32 → ERd32
Rd8∨#xx:8 → Rd8
Rd8∨Rs8 → Rd8
Rd16∨#xx:16 → Rd16
Rd16∨Rs16 → Rd16
ERd32∨#xx:32 → ERd32
ERd32∨ERs32 → ERd32
Rd8⊕#xx:8 → Rd8
Rd8⊕Rs8 → Rd8
Rd16⊕#xx:16 → Rd16
Rd16⊕Rs16 → Rd16
ERd32⊕#xx:32 → ERd32
ERd32⊕ERs32 → ERd32
¬Rd8 → Rd8
¬Rd16 → Rd16
¬Rd32 → Rd32
No. of
States*
Condition Code
I
H N Z
V C
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
— —
0 —
1
2
2
4
2
6
4
2
2
4
2
6
4
2
2
4
2
6
4
2
2
2

Advertisement

Table of Contents
loading

Table of Contents