beautypg.com

Lra load pc relative address lra, Caution – Motorola DSP96002 User Manual

Page 403

background image

MOTOROLA

DSP96002 USER’S MANUAL

A - 215

LRA

Load PC Relative Address

LRA

Operation:

PC+Rn

D

Assembler Syntax:

LRA Rn,D

LRA label,D

Description:

The PC is added to the specified displacement and the result is stored in destination D. The PC contains

the address of the next instruction. The displacement is a 2’s complement 32-bit integer that represents

the relative distance from the current PC to the destination PC. Long Displacement and Address Register

PC Relative addressing modes may be used. See Section A.10 for restrictions. Note that if D is SSH,

the SP will be preincremented by one.

CAUTION

See restrictions in Section A.10.6 concerning Rn, Mn, and Nn registers as a
destination.

CCR Condition Codes:

For destination operand SR:

C

- Set according to bit 0 of the source operand.

V

- Set according to bit 1 of the source operand.

Z

- Set according to bit 2 of the source operand.

N

- Set according to bit 3 of the source operand.

I

- Set according to bit 4 of the source operand.

LR

- Set according to bit 5 of the source operand.

R

- Set according to bit 6 of the source operand.

A

- Set according to bit 7 of the source operand.

For destination operands other than SR:

C

- Not affected.

V

- Not affected.

Z

- Not affected.

N

- Not affected.

I

- Not affected.

LR

- Not affected.

R

- Not affected.

A

- Not affected.