Freescale Semiconductor SC140 specifications Lsrr d4,d2, Before After

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 543
Image 543

LSRR

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

SR[0]

C

Bit (N – 1) of Dn is stored in the C bit for a right shift. Or, bit

 

 

(40 – N) of Dn is stored in the C bit for a left shift.

Ln

L

Clears the Ln bit in the destination register.

Example 1

lsrr d4,d2

Register/Memory Address

D4

SR

L2:D2

C 1

 

Before

 

After

 

 

 

 

 

 

 

 

$FF FFFF FFFE

 

 

 

 

 

 

 

 

 

 

 

$00E4 0000

 

 

$00E4

0001

 

 

 

 

 

 

 

$0:$FF 8765 4321

 

 

$0:$FE 1D95

0C84

3

3

1

 

0

9

2

6

 

1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 0 1 1 0 0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1

1 1 1 1 1 1 1 0 0 0 0 1 1 1 0 1 1 0 0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0

Example 2

lsrr d4,d2

Register/Memory Address

D4

SR

L2:D2

3

9

Before

 

After

 

 

 

$00 0000 0002

 

 

 

 

 

$00E4 0000

 

$00E4 0000

 

 

 

$0:$FF 8765 4321

 

$0:$3F 1ED9 50C8

3

1

0

2

6

1

1

1

1

1

1

1

1

1

0

0

0

0

1

1

1

0

1

1

0

0

1

0

1

0

1

0

0

0

0

1

1

0

0

1

0

0

0

0

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

1

1

1

1

1

1

1

1

1

0

0

0

0

1

1

1

0

1

1

0

0

1

0

1

0

1

0

0

0

0

1

1

0

0

1

0

0

0

 

SC140 DSP Core Reference Manual

A-229

Page 543
Image 543
Freescale Semiconductor SC140 specifications Lsrr d4,d2, Before After