MC68030RC33 Binary Coded Decimal Instructions - Motorola

no-image

MC68030RC33

Manufacturer Part Number
MC68030RC33
Description
MC68030RC33ENHANCED 32-BIT MICROPROCESSOR
Manufacturer
Motorola
Datasheet
Instruction Set Summary
3.2.7 Binary–coded Decimal Instructions
Five instructions support operations on binary-coded decimal (BCD) numbers. The
arithmetic operations on packed BCD numbers are add decimal with extend (ABCD),
subtract decimal with extend (SBCD), and negate decimal with extend (NBCD). PACK and
UNPACK instructions aid in the conversion of byte encoded numeric data, such as ASCII or
EBCDIC strings, to BCD data and vice versa. Table 3–7 is a summary of the BCD
operations.
Instruction
Operand Syntax
ABCD
Dn,Dn
–(An)
NBCD
ea
PACK
–(An),–(An)
# data
Dn,Dn,# data
SBCD
Dn,Dn
–(An),–(An)
UNPK
–(An)
# data
Dn,Dn,# data
3-10
Table 3-7. BCD Operations
Operand Size
8
source
+ destination
10
8
8
0 - destination
–X
10
16 8
unpackaged source + immediate data
destination
16 8
8
destination
- source
10
8
8 16
packed source
unpacked source
unpacked source + immediate data
8 16
unpacked destination
MC68030 USER’S MANUAL
Operation
+ X
destination
10
destination
packed
– X
destination
10
MOTOROLA

Related parts for MC68030RC33