Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->ABCD

ABCD    Add Decimal with Extend

Compatibility: 68000, 68010, 68020, CPU32 families

Destination + Source + X  -> Destination

Assembler Syntax:    ABCD Dy,Dx
            ABCD -(Ay),-(Ax)

Size:  Byte

Add the source operand to the destination operand and store the result in the destination location.  The operands are packed BCD numbers and the operation is performed using binary coded decimal arithmetic.

Condition Codes:

N    Undefined
Z    Clear if result non-zero else unchanged
V    Undefined
C    Set if carry (decimal) else clear
X    Set same as carry

    bytes    cycles

Dy,Dx        2    6
-(Ay),-(Ax)    2    18