Motorola CPU32 Reference Manual page 161

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

NBCD
Operation:
Assembler
Syntax:
Attributes:
Description:
operation is performed using binary coded decimal arithmetic. The packed BCD
result is saved in the destination location. This instruction produces the tens comple-
ment of the destination if the extend bit is zero, or the nines complement if the extend
bit is one.
Condition Codes:
X
N
Z
*
U
*
X
Set the same as the carry bit.
N
Undefined.
Z
Cleared if the result is non-zero. Unchanged otherwise.
V
Undefined.
C
Set if a decimal borrow occurs. Cleared otherwise.
Normally the Z condition code bit is set via programming before the
start of the operation. This allows successful tests for zero results
upon completion of multiple precision operations.
Instruction Format:
15
14
13
0
1
0
CPU32
REFERENCE MANUAL
Negate Decimal with Extend
) – X → Destination
0 – (Destination
10
NBCD 〈ea〉
Size = (Byte)
Subtracts the destination operand and the extend bit from zero. The
V
C
U
*
12
11
10
9
0
1
0
0
INSTRUCTION SET
NOTE
8
7
6
5
0
0
0
NBCD
4
3
2
1
EFFECTIVE ADDRESS
MODE
REGISTER
MOTOROLA
0
4-113

Advertisement

Table of Contents
loading

Table of Contents