Arithmetic Instructions - Hitachi H8/3062 Hardware Manual

Single-chip microcomputer h8/3062 series; h8/3062b series; h8/3062f-ztat series; h8/3064f-ztat series
Hide thumbs Also See for H8/3062:
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
Addressing Mode and
Instruction Length (bytes)
W
L
B
4
B
4
Addressing Mode and
Instruction Length (bytes)
B
2
B
2
W
4
W
2
L
6
L
2
B
2
B
2
L
2
L
2
L
2
B
2
W
2
W
2
Operation
SP–2 → SP
2
Rn16 → @SP
SP–4 → SP
4
ERn32 → @SP
Cannot be used in the
H8/3062 Series
Cannot be used in the
H8/3062 Series
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 +C → Rd8
Rd8+Rs8 +C → Rd8
ERd32+1 → ERd32
ERd32+2 → ERd32
ERd32+4 → ERd32
Rd8+1 → Rd8
Rd16+1 → Rd16
Rd16+2 → Rd16
No. of
States*
Condition Code
I
H N Z
V C
— —
0 —
6
0 —
10
Cannot be used in the
H8/3062 Series
Cannot be used in the
H8/3062 Series
No. of
States*
Condition Code
I
H N Z
V C
2
2
— (1)
4
— (1)
2
— (2)
6
— (2)
2
(3)
2
(3)
2
— — — — — —
2
— — — — — —
2
— — — — — —
2
— —
2
— —
2
— —
2
1
1
767

Advertisement

Table of Contents
loading

Table of Contents