Motorola CPU32 Reference Manual page 63

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

ABCD
Operation:
Assembler
Syntax:
Attributes:
Description:
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 num-
bers, can be addressed in two different ways:
1. Data register to data register — Operands are contained in data registers spec-
ified by the instruction.
2. Memory to memory — Operands are addressed with the predecrement ad-
dressing mode using address registers specified by the instruction.
Condition Codes:
X
N
Z
*
U
*
X
Set the same as the carry bit.
N
Undefined.
Z
Cleared if the result is nonzero. Unchanged otherwise.
V
Undefined.
C
Set if a decimal carry was generated. Cleared otherwise.
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
1
1
0
CPU32
REFERENCE MANUAL
Add Decimal with Extend
Source
+ Destination
10
ABCD Dy, Dx
ABCD – (Ay), – (Ax)
Size = (Byte)
Adds the source operand to the destination operand along with the
V
C
U
*
12
11
10
9
0
REGISTER Rx
INSTRUCTION SET
+ X → Destination
10
NOTE
8
7
6
5
1
0
0
0
ABCD
4
3
2
1
0
R/M
REGISTER Ry
MOTOROLA
0
4-15

Advertisement

Table of Contents
loading

Table of Contents