Binary-Coded Decimal (Bcd) Instructions; Program Control Instructions - Motorola MC68340 User Manual

Integrated processor with dma
Hide thumbs Also See for MC68340:
Table of Contents

Advertisement

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.
Instruction
ABCD
– (An), – (An)
NBCD
SBCD
– (An), – (An)
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.
Instruction
Bcc
DBcc
Scc
BRA
BSR
JMP
JSR
NOP
RTD
RTR
RTS
5-26
Freescale Semiconductor, Inc.
Table 5-9. Binary-Coded Decimal Operations
Operand
Syntax
Operand Size
Dn, Dn
8
8
ea
8
8
Dn, Dn
8
8
Table 5-10. Program Control Operations
Operand
Syntax
Operand Size
Conditional
label
8, 16, 32
Dn label
16
ea
8
Unconditional
label
8, 16, 32
label
8, 16, 32
ea
none
ea
none
none
none
Returns
# d
16
none
none
none
none
MC68340 USER'S MANUAL
For More Information On This Product,
Go to: www.freescale.com
Operation
Source 10 + Destination 10 + X
0 – Destination 10 – X
Destination
Destination 10 – Source 10 – X
Operation
If condition true, then PC + d
If condition false, then Dn – 1
if Dn
– 1), then PC + d
If condition true, then destination bits are set to 1;
else destination bits are cleared to 0
PC + d
PC
SP – 4
SP; PC
(SP); PC + d
Destination
PC
SP – 4
SP; PC
(SP); destination
PC + 2
PC
(SP)
PC; SP + 4 + d
SP
(SP)
CCR; SP + 2
SP; (SP)
SP
(SP)
PC; SP + 4
SP
Destination
Destination
PC
PC;
PC
PC
PC
PC; SP + 4
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents