dsp56000 Freescale Semiconductor, Inc, dsp56000 Datasheet - Page 514

no-image

dsp56000

Manufacturer Part Number
dsp56000
Description
24-bit Digital Signal Processor Family Manual
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Operation:
Description: Repeat the single-word instruction immediately following the REP
instruction the specified number of times. The value specifying the number of times the
given instruction is to be repeated is loaded into the 16-bit loop counter (LC) register.
The single-word instruction is then executed the specified number of times, decrement-
ing the loop counter (LC) after each execution until LC=1. When the REP instruction is in
effect, the repeated instruction is fetched only one time, and it remains in the instruction
register for the duration of the loop count. Thus, the REP instruction is not interrupt-
ible (sequential repeats are also not interruptible). The current loop counter (LC) value is
stored in an internal temporary register. If LC is set equal to zero, the instruction is
repeated 65,536 times. The instruction’s effective address specifies the address of the
value which is to be loaded into the loop counter (LC). All address register indirect
addressing modes may be used. The absolute short and the immediate short addressing
modes may also be used. The four MS bits of the 12-bit immediate value are zeroed to
form the 16-bit value that is to be loaded into the loop counter (LC).
A - 248
REP
LC
Repeat next instruction until LC=1
TEMP
LC
Repeat next instruction until LC=1
TEMP
LC
Repeat next instruction until LC=1
TEMP
LC
Repeat next instruction until LC=1
TEMP
LC
Repeat next instruction until LC=1
TEMP
LC
Repeat next instruction until LC=1
TEMP
TEMP; X:ea
TEMP; X:aa
TEMP; Y:ea
TEMP; Y:aa
TEMP; S
TEMP; #xxx
LC
LC
LC
LC
LC
LC
Freescale Semiconductor, Inc.
LC
For More Information On This Product,
LC
LC
LC
LC
LC
INSTRUCTION DESCRIPTIONS
INSTRUCTION SET DETAILS
Repeat Next Instruction
Go to: www.freescale.com
Assembler Syntax:
REP
REP
REP
REP
REP
REP
X:ea
X:aa
Y:ea
Y:aa
S
#xxx
MOTOROLA
REP

Related parts for dsp56000