Addx (Add With Extend Carry) - Hitachi H8/300L Series Programming Manual

Hide thumbs Also See for H8/300L Series:
Table of Contents

Advertisement

2.2.3 ADDX (add with extend carry)

Operation
Rd+(EAs)+C → Rd
Assembly-Language Format
ADDX <EAs>, Rd
Operand Size
Byte
Condition Code
I
H
— —
I:
Previous value remains unchanged.
H:
Set to 1 if 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 when an overflow occurs; otherwise cleared to 0.
C:
Set to 1 when there is a carry from bit 7; otherwise cleared to 0.
Description
This instruction adds the source operand and carry flag to the contents of an 8-bit general
register and places the result in the general register.
Instruction Formats and Number of Execution States
Addressing
mode
Mnem.
Immediate
ADDX
Register direct ADDX
N
Z
V
C
Instruction code
Operands
1 st byte 2nd byte 3rd byte 4th byte
#xx:8, Rd
9
rd
Rs, Rd
0
E
rs
IMM
rd
No of
states
2
2
39

Advertisement

Table of Contents
loading

Table of Contents