dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 624

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
SWAP
Operation:
R0/R1/N/M01 → temporary registers
Shadow registers → R0/R1/N/M01
Temporary registers → shadow registers
Description: Exchange the values in the R0, R1, N, and M01 registers with their corresponding shadow registers.
Example:
Explanation of Example:
Condition Codes Affected:
Instruction Fields:
Instruction Opcodes:
Timing:
Memory:
A-280
SWAP
Operation
SWAP
SHADOWS
This is the only instruction that can access the shadow registers.
SWAP
The SWAP instruction places the values in the shadow registers that exist prior to execution into the
R0, R1, N, and M01 registers, and it stores the values that are in the R0, R1, N, and M01 registers prior
to execution in the shadow registers.
The condition codes are not affected by this instruction.
1 oscillator clock cycle
1 program word
SHADOWS
Operand
SHADOWS
DSP56800E Core Reference Manual
C
1
Swap Shadow Registers
; exchange R0, R1, N and M01 with shadow registers
W
1
15
1
Swap the value in the R0, R1, N, and M01 registers with their
shadow registers. This is the only instruction that accesses the
shadow registers.
1
1
Assembler Syntax:
SWAP
12
0
11
0
1
1
SHADOWS
1
8
Comments
7
0
0
Freescale Semiconductor
0
(no parallel move)
0
4
0
3
SWAP
1
1
0
0

Related parts for dsp56800e