INSTRUCTION DESCRIPTIONS

MOVEM

Move Program Memory

Example:

:

MOVEM

MOVEM P:(R5+N5), LC

 

 

:

 

 

 

 

 

 

 

 

 

 

 

 

Before Execution

 

 

 

 

 

 

 

 

 

 

 

 

P:(R5 + N5)

 

 

 

$000116

 

 

 

 

 

 

 

 

:move P:(R5+N5) into the loop counter (LC)

 

 

 

After Execution

 

 

 

 

 

 

 

 

 

 

 

P:(R5 + N5)

 

 

 

$000116

 

 

 

 

 

 

LC

$0000

LC

$0116

Explanation of Example: Prior to execution, the 16-bit loop counter (LC) register con- tains the value $0000, and the 24-bit program (P) memory location P:(R5+N5) contains the value $000116. The execution of the MOVEM P:(R5+N5), LC instruction moves the 16 LS bits of the 24-bit program (P) memory location P:(R5+N5) into the 16-bit LC regis- ter.

Condition Codes:

15

14

 

13

12

11

10

9

8

7

6

 

5

4

3

2

1

0

LF

DM

T

**

 

S1

S0

 

I1

I0

S

L

E

U

N

Z

 

V

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MR

 

 

 

 

 

 

 

 

 

 

CCR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

For D=SR operand:

S — Set according to bit 7 of the source operand

L — Set according to bit 6 of the source operand

E — Set according to bit 5 of the source operand

U — Set according to bit 4 of the source operand

N — Set according to bit 3 of the source operand

Z — Set according to bit 2 of the source operand

V — Set according to bit 1 of the source operand

C — Set according to bit 0 of the source operand

For DSR operand:

S — Computed according to the definition in A.5 CONDITION CODE COMPUTATION L — Set if data limiting has occurred during the move

A - 216

INSTRUCTION SET DETAILS

MOTOROLA

Page 485
Image 485
Motorola 24-Bit Digital Signal Processor, DSP56000 manual Example, Movem PR5+N5, LC