Loop Instructions; Move Instructions; Program Control Instructions - Motorola DSP96002 User Manual

32-bit digital signal processor
Table of Contents

Advertisement

6.2.5 Loop Instructions

The loop instructions control hardware looping by initiating a program loop and setting up looping parame-
ters, or by "cleaning" up the system stack when terminating a loop. Initialization includes saving registers
used by a program loop (LA and LC) on the system stack so that program loops can be nested. The ad-
dress of the first instruction in a program loop is also saved to allow no-overhead looping. See Figure 6-
5 for a list of the four loop instructions.
DO
DOR
ENDDO
REP

6.2.6 Move Instructions

The move instructions perform data movement over the X and Y Data Buses, over the Global Data Bus
and over the Program Data Bus. Address Generation Unit instructions are also included among the follow-
ing move instructions. See Figure 6-6 for a list of the nine move instructions.
LEA
LRA
MOVE
MOVETA
MOVEC
MOVEI
MOVEM
MOVEP
MOVES

6.2.7 Program Control Instructions

The program control instructions include jumps, conditional jumps, branches, conditional branches and oth-
er instructions which affect the PC and system stack. Branch instructions allow PC relative displacements
needed for position independent code. See Figure 6-7 for a list of the thirty five program control instruc-
tions.
MOTOROLA
Start Hardware Loop
Start PC Relative Hardware Loop
Exit from Hardware Loop
Repeat Next Instruction
Figure 6-5. Loop Instructions
Load Effective Address
Load PC Relative Address
Move Data Register(s)
Move Data Register(s) and Test Address
Move Control Register
Move Immediate
Move Program Memory
Move Peripheral Data
Move Absolute Short
Figure 6-6. Move Instructions
DSP96002 USER'S MANUAL
6 - 5

Advertisement

Table of Contents
loading

Table of Contents