Section 2. Instruction Set - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

Section 2 gives full descriptions of all the H8/300 instructions, presenting them in alphabetic
order. Each instruction is explained in a table like the following:
ADD (ADD binary) (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
<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.
Addressing
mode
Immediate
Register direct

Section 2. Instruction Set

Mnem.
Operands
ADD.B
#xx:8, Rd
ADD.B
Rs, Rd
<Condition Code>
I
— —
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."
Instruction code
1st byte
2nd byte
8
rd
IMM
0
8
rs
rd
32
H
N
Z
3rd byte
4th byte
ADD
V
C
No. of
states
2
2

Advertisement

Table of Contents
loading

Table of Contents