Binary-Coded Decimal (Bcd) Instructions; Program Control Instructions - Motorola CPU32 Reference Manual

M68300 series central processor unit
Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

Table 4-6. Bit Manipulation Operations
Instruction
Syntax
Operand
Operation
Size
BCHG
Dn, (ea)
8,32
(bit number) of destination) =>Z =>
#(data), (ea)
8,32
bit of destination
BCLR
Dn, (ea)
8,32
(bit number) of destination) => Z;
#(data), (ea)
8,32
o
=>
bit of destination
BSET
Dn, (ea)
8,32
(bit number) of destination) => Z;
#(data), (ea)
8,32
1
=>
bit of destination
BTST
Dn, (ea)
8,32
(bit number) of destination) => Z
#(data), (ea)
8,32
4.3.7 Binary-Coded Decimal (BCD) Instructions
Five instructions support operations on BCD numbers.
The arithmetic
III
operations on packed BCD numbers are add decimal with extend (ABeD),
~
subtract decimal with extend (SBCD), and negate decimal with extend (NBCD).
Table 4-7 is a summary of the BCD operations.
Table 4-7. Binary-Coded Decimal Operations
Instruction
Syntax
Operand
Operation
Size
ABCD
Dn. Dn
8
Source10 + Destination1Q+ X
=>
Destination
- (An), - (An)
8
NBCD
(ea)
8
o -
Destination1 0 - X => Destination
8
SBCD
Dn,Dn
8
Destination10 - Source
10 -
X
=>
Destination
- (An), - (An)
8
4.3.8 Program Control Instructions
A set of subroutine call and return instructions and conditional and
unconditional branch instructions perform program control operations. Table
4-8 summarizes these instructions.
CPU32 REFERENCE MANUAL
INSTRUCTION SET
MOTOROLA
4-13

Advertisement

Table of Contents
loading

Table of Contents