Arithmetic Instructions - Hitachi H8/3022 Hardware Manual

H8/3022 series hitachi single-chip microcomputer
Table of Contents

Advertisement

Mnemonic
PUSH.W Rn
PUSH.L ERn
MOVFPE @aa:16,
Rd
MOVTPE Rs,
@aa:16
2.

Arithmetic instructions

Mnemonic
ADD.B #xx:8, Rd
ADD.B Rs, Rd
ADD.W #xx:16, Rd
ADD.W Rs, Rd
ADD.L #xx:32, ERd
ADD.L ERs, ERd
ADDX.B #xx:8, Rd
ADDX.B Rs, Rd
ADDS.L #1, ERd
ADDS.L #2, ERd
ADDS.L #4, ERd
INC.B Rd
INC.W #1, Rd
INC.W #2, Rd
Operation
W SP–2 → SP
Rn16 → @SP
SP–4 → SP
L
ERn32 → @SP
B
Cannot be used in the
H8/3039 Series
B
Cannot be used in the
H8/3039 Series
Operation
Rd8+#xx:8 → Rd8
B
Rd8+Rs8 → Rd8
B
W Rd16+#xx:16 → Rd16
W Rd16+Rs16 → Rd16
ERd32+#xx:32 →
L
ERd32
ERd32+ERs32 →
L
ERd32
Rd8+#xx:8 +C → Rd8
B
Rd8+Rs8 +C → Rd8
B
ERd32+1 → ERd32
L
ERd32+2 → ERd32
L
ERd32+4 → ERd32
L
Rd8+1 → Rd8
B
W Rd16+1 → Rd16
W Rd16+2 → Rd16
Addressing Mode and
Instruction Length (bytes)
4
4
Addressing Mode and
Instruction Length (bytes)
2
2
4
2
6
2
2
2
2
2
2
2
2
2
Condition Code
I
H N Z
V C
2 — —
0 —
4 — —
0 —
Cannot be used in the H8/3022
Series
Cannot be used in the H8/3022
Series
Condition Code
I
H N Z
V C
— (1)
— (1)
— (2)
— (2)
(3)
(3)
— — — — — —
— — — — — —
— — — — — —
— —
— —
— —
No. of
*1
States
6
10
No. of
*1
States
2
2
4
2
6
2
2
2
2
2
2
2
2
2
545

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3021H8/3020H8/3022 f-ztat

Table of Contents