ADD (ADD binary) (word)
ADD
<Description>
This instruction adds word data in two general registers and places the result in the second
general register.
<Instruction Formats>
Register direct
ADD.W
Rs, Rd
0
9
0 rs 0 rd
2
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
<Operation>
Rd + Rs
→
Rd
<Assembly-Language Format>
ADD.W
Rs, Rd
<Examples>
ADD.W R0, R1
<Operand Size>
Word
<Condition Code>
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" if an overflow occurs;
otherwise cleared to "0."
C: Set to "1" if there is a carry from bit 15;
otherwise cleared to "0."
I
H
N
Z
V
C
—
—
↕
—
↕
↕
↕
↕
38
Summary of Contents for H8/300 Series
Page 2: ...H8 300 Programming Manual...