Freescale Semiconductor, Inc.
5.3.3.7 BINARY-CODED DECIMAL (BCD) INSTRUCTIONS. Five instructions support
operations on 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). Table 5-9 is a summary of the BCD operations.
Table 5-9. Binary-Coded Decimal Operations
Operand
Syntax
Instruction
Operand Size
Operation
ABCD
Dn, Dn
– (An), – (An)
8
8
Source + Destination + X
Destination
10 10
NBCD
SBCD
ea
8
8
0 – Destination – X
10
Destination
Dn, Dn
– (An), – (An)
8
8
Destination – Source – X
10 10
Destination
5.3.3.8 PROGRAM CONTROL INSTRUCTIONS. A set of subroutine call and return
instructions and conditional and unconditional branch instructions perform program control
operations. Table 5-10 summarizes these instructions.
Table 5-10. Program Control Operations
Operand
Syntax
Instruction
Operand Size
Conditional
Operation
Bcc
label
8, 16, 32
16
If condition true, then PC + d
PC
DBcc
Dn , label
If condition false, then Dn – 1
PC;
if Dn ≠ (– 1), then PC + d
PC
Scc
ea
8
If condition true, then destination bits are set to 1;
else destination bits are cleared to 0
Unconditional
BRA
BSR
JMP
JSR
NOP
label
label
ea
8, 16, 32
8, 16, 32
none
PC + d PC
SP – 4
Destination
SP – 4 SP; PC (SP); destination
PC + 2 PC
Returns
SP; PC (SP); PC + d PC
PC
ea
none
PC
none
none
RTD
RTR
# d
16
(SP)
PC; SP + 4 + d
CCR; SP + 2
SP
SP; (SP) PC; SP + 4
none
none
(SP)
SP
RTS
none
none
(SP)
PC; SP + 4
SP
5- 26
MC68340 USER’S MANUAL
MOTOROLA
For More Information On This Product,
Go to: www.freescale.com