beautypg.com

Addx – Zilog Z8F0130 User Manual

Page 98

background image

eZ8

CPU Core

User Manual

UM012820-0810

ADDX Instruction

83

ADDX

Definition

Add using Extended Addressing.

Syntax

ADDX dst, src

Operation

dst

 dst + src

Description

For this new eZ8 extended addressing instruction, the source operand is
added to the destination operand, and two’s-complement addition is per-
formed. The sum is stored in the destination operand. The contents of the
source operand are not affected.

Flags

C

Set if there is a carry from bit 7; reset otherwise

Z

Set if the result is zero; reset otherwise

S

Set if the result is negative; reset otherwise

V

Set if an arithmetic overflow occurs; reset otherwise

D

Reset to 0

H

Set if there is a carry from bit 3 of the result; reset otherwise