Motorola CPU32 Reference Manual page 73

M68300 series central processor unit
Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

ABCD
Operation:
Assembler
Syntax:
Attributes:
Add Decimal with Extend
SourcelO + Destination10 + X
=> Destination
ABCD Dy, Dx
ABCD - (Ay) , - (Ax)
Size
=
(Byte)
ABCD
Description:
Adds the source operand to the destination operand along with the extend bit, and
stores the result in the destination location. The addition is performed using binary coded decimal
arithmetic. The operands, which are packed BCD numbers, can be addressed in two different
ways:
1. Data register to data register - Operands are contained in data registers specified by the
instruction.
2. Memory to memory -
Operands are addressed with the predecrement addressing mode
using address registers specified by the instruction.
Condition Codes:
x
N
z
v
u
u
X Set the same as the carry bit.
N Undefined.
c
Z Cleared if the result is nonzero. Unchanged otherwise.
V Undefined.
C Set if a decimal carry was generated. Cleared otherwise.
NOTE
Normally the Z condition code bit is set via programming before the start of an
operation. This allows successful tests for zero results upon completion of
multiple-precision operations.
Instruction Format:
15
14
13
12
11
10
9
8
7 6 5 4 3
2
1
0
o
I
0
I
REGISTER Rx
ololololRlMI
REGISTERRy
MOTOROLA
4-20
INSTRUCTION SET
CPU32 REFERENCE MANUAL

Advertisement

Table of Contents
loading

Table of Contents