Arithmetic Instructions - Hitachi H8/3672 Series Hardware Manual

Single-chip microcomputer
Table of Contents

Advertisement

2. Arithmetic instructions

Mnemonic
ADD.B #xx:8, Rd
ADD
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
ADDX.B Rs, Rd
ADDS
ADDS.L #1, ERd
ADDS.L #2, ERd
ADDS.L #4, ERd
INC.B Rd
INC
INC.W #1, Rd
INC.W #2, Rd
INC.L #1, ERd
INC.L #2, ERd
DAA Rd
DAA
SUB.B Rs, Rd
SUB
SUB.W #xx:16, Rd
SUB.W Rs, Rd
SUB.L #xx:32, ERd
SUB.L ERs, ERd
SUBX
SUBX.B #xx:8, Rd
SUBX.B Rs, Rd
SUBS.L #1, ERd
SUBS
SUBS.L #2, ERd
SUBS.L #4, ERd
DEC
DEC.B Rd
DEC.W #1, Rd
DEC.W #2, Rd
Addressing Mode and
Instruction Length (bytes)
B
2
B
2
W
4
W
2
L
6
2
L
B
2
B
2
L
2
L
2
L
2
B
2
W
2
W
2
L
2
L
2
B
2
B
2
4
W
W
2
L
6
L
2
B
2
B
2
L
2
L
2
L
2
B
2
W
2
W
2
Operation
I
Rd8+#xx:8 → Rd8
Rd8+Rs8 → Rd8
Rd16+#xx:16 → Rd16
Rd16+Rs16 → Rd16
ERd32+#xx:32 →
ERd32
ERd32+ERs32 →
ERd32
Rd8+#xx:8 +C → Rd8
Rd8+Rs8 +C → Rd8
ERd32+1 → ERd32
ERd32+2 → ERd32
ERd32+4 → ERd32
Rd8+1 → Rd8
Rd16+1 → Rd16
Rd16+2 → Rd16
ERd32+1 → ERd32
ERd32+2 → ERd32
Rd8 decimal adjust
→ Rd8
Rd8–Rs8 → Rd8
Rd16–#xx:16 → Rd16
Rd16–Rs16 → Rd16
ERd32–#xx:32 → ERd32
ERd32–ERs32 → ERd32
Rd8–#xx:8–C → Rd8
Rd8–Rs8–C → Rd8
ERd32–1 → ERd32
ERd32–2 → ERd32
ERd32–4 → ERd32
Rd8–1 → Rd8
Rd16–1 → Rd16
Rd16–2 → Rd16
Rev. 1.0, 03/01, page 229 of 280
No. of
*1
States
Condition Code
H
N
Z
V
C
2
2
(1)
4
2
(1)
(2)
6
(2)
2
(3)
2
(3)
2
2
2
2
2
2
2
2
2
2
*
*
2
(1)
4
(1)
2
(2)
6
(2)
2
2
(3)
(3)
2
2
2
2
2
2
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3672f-ztat hd64f3672H8/3670f-ztat hd64f3670

Table of Contents