Logical Instructions; Bit Manipulation Instructions - Motorola DSP96002 User Manual

32-bit digital signal processor
Table of Contents

Advertisement

6.2.3 Logical Instructions

The logical instructions perform all of the logical operations, except ANDI and ORI, within the Data ALU.
Logical instructions are register-based like the arithmetic instructions discussed previously. Optional data
transfers may be specified in parallel with most logical instructions – over the X and Y data buses or over
the Global Data Bus. This allows new data to be pre-fetched for use in following instructions and results
calculated in previous instructions to be stored. These instructions execute in one instruction cycle. See
Figure 6-3 for a list of the thirteen logical instructions.
AND
Logical AND
ANDC Logical AND with Complement
ANDI
AND Immediate to Control Register *
BFIND Find Leading One
EOR
Logical Exclusive OR
LSL
Logical Shift Left
LSR
Logical Shift Right
NOT
Logical Complement
OR
Logical Inclusive OR
ORC
Logical Inclusive OR with Complement
ORI
OR Immediate to Control Register *
ROL
Rotate Left
ROR
Rotate Right
* These instructions do not allow parallel data moves.

6.2.4 Bit Manipulation Instructions

The bit manipulation instructions test the state of any single bit in a data memory location or register and
then optionally sets, clears, or inverts the bit. The Carry bit in the CCR register will contain the result of
the bit test. Parallel moves are not allowed with any of these instructions. See Figure 6-4 for a list of the
four bit manipulation instructions.
BCLR Bit Test and Clear
BSET Bit Test and Set
BCHG Bit Test and Change
BTST Bit Test
6 - 4
Figure 6-3. Logical Instructions
Figure 6-4. Bit Manipulation Instructions
DSP96002 USER'S MANUAL
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents