37
2.2.1 (2) ADD (add binary) (word)
Operation
Rd + Rs
→
Rd
Assembly-Language Format
ADD.W Rs, Rd
Operand Size
Word
Condition Code
I
H
N
Z
V
C
—
—
∆
—
∆
∆
∆
∆
I:
Previous value remains unchanged.
H:
Set to 1 when there is a carry from bit 11; otherwise cleared to 0.
N:
Set to 1 when the result is negative; otherwise cleared to 0.
Z:
Set to 1 when the result is zero; otherwise cleared to 0.
V:
Set to 1 when an overflow occurs; otherwise cleared to 0.
C:
Set to 1 when there is a carry from bit 15; otherwise cleared to 0.
Description
This instruction adds word data in two general registers and places the result in the second
general register.
Instruction Formats and Number of Execution States
Instruction code
Addressing
mode
Mnem.
Operands
1st byte
2nd byte
3rd byte
4th byte
No. of
states
Register direct
ADD.W
Rs, Rd
0
9
0
rs
0
rd
2
Summary of Contents for H8/300L Series
Page 1: ...H8 300L Series Programming Manual ...
Page 6: ...iv ...
Page 8: ...2 ...
Page 11: ......
Page 14: ......
Page 46: ......
Page 48: ......
Page 60: ......
Page 83: ......
Page 116: ......
Page 150: ...144 ...
Page 151: ......
Page 156: ...150 ...