1) Add (B) - Hitachi H8/300H Series Programming Manual

Table of Contents

Advertisement

2.2.1 (1) ADD (B)

ADD (ADD binary)
Operation
Rd + (EAs) → Rd
Assembly-Language Format
ADD.B <EAs>, Rd
Operand Size
Byte
Description
This instruction adds the source operand to the contents of an 8-bit register Rd (destination
operand) and stores the result in the 8-bit register Rd.
Available Registers
Rd:
R0L to R7L, R0H to R7H
Rs:
R0L to R7L, R0H to R7H
Operand Format and Number of States Required for Execution
Addressing
Mnemonic
Mode
Immediate
ADD.B
Register direct
ADD.B
Notes
Operands
1st byte
#xx:8, Rd
8
rd
Rs, Rd
0
8
42
Condition Code
I
UI H
U
— —
H: Set to 1 if there is a carry at bit 3;
otherwise cleared to 0.
N: Set to 1 if the result is negative; otherwise
cleared to 0.
Z: Set to 1 if 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 at bit 7;
otherwise cleared to 0.
Instruction Format
2nd byte
3rd byte
IMM
rs
rd
Add Binary
N
Z
V
C
No. of
States
4th byte
2
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents