|
MC68030 Datasheet, PDF (88/602 Pages) Motorola, Inc – ENHANCED 32-BIT MICROPROCESSOR | |||
|
◁ |
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
ABCD
NBCD
PACK
SBCD
UNPK
Operand Syntax
Dn,Dn
â(An)
â©eaâª
â(An),â(An)
#â©dataâª
Dn,Dn,# â©dataâª
Dn,Dn
â(An),â(An)
â(An)
#â©dataâª
Dn,Dn,#â©dataâª
Table 3-7. BCD Operations
Operand Size
8
8
8
16â8
16â8
8
8
8â16
8â16
Operation
source10 + destination10 + X â destination
0 - destination10 âX â destination
unpackaged source + immediate data â packed
destination
destination10 - source10 â X â destination
packed source â unpacked source
unpacked source + immediate data â
unpacked destination
3-10
MC68030 USERâS MANUAL
MOTOROLA
|
▷ |