![Renesas H8/300 Series Скачать руководство пользователя страница 43](http://html1.mh-extra.com/html/renesas/h8-300-series/h8-300-series_programming-manual_1440053043.webp)
ADD (ADD binary) (byte)
ADD
<Description>
This instruction adds the source operand to the contents of an 8-bit general register and places
the result in the 8-bit general register .
The source operand can be an 8-bit register value or immediate byte data.
<Instruction Formats>
Immediate
ADD.B
#xx:8, Rd
8
rd
IMM
2
Register direct
ADD.B
Rs, Rd
0
8
rs
rd
2
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
<Operation>
Rd + (EAs)
→
Rd
<Assembly-Language Format>
ADD.B
<EAs>, Rd
<Examples>
ADD.B R0H, R1H
ADD.B #H'64, R2L
<Operand Size>
Byte
<Condition Code>
I: Previous value remains unchanged.
H: Set to "1" when there is a carry from bit
3; 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 7;
otherwise cleared to "0."
I
H
N
Z
V
C
—
—
↕
—
↕
↕
↕
↕
37
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...