ASRR

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

SR[0]

C

Set to the value of the last bit out.

EMR[2]

DOVF

Set if the result cannot be represented in 40 bits

 

 

(possible only for ASRR Da,Dn)

Ln

L

Clears the Ln bit in the destination register.

Example 1

asrr #$3,d5

Register/Memory Address

D3

L5:D5

SR

EMR

Before

$3

$0:$00 0000 7C09

$00E4 0000

After

$0:$00 0000 0F81

$00E4 0000

$0000 0000

3

3

1

0

 

9

2

6

 

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

0

0

0

0

0

0

1

0

0

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

0

0

0

0

0

0

1

 

Example 2

asrr d3,d5

Register/Memory Address

D3

L5:D5

SR

EMR

Before

$FF FDDD DDDC

$0:$00 0000 7C09

$00E4 0000

After

$0:$00 0007 C090

$00E4 0001

$0000 0000

 

3

3

1

0

 

9

2

6

 

1

1

1

1

1

1

1

1

1

0

1

0

0

1

0

1

0

1

1

1

0

0

1

0

1

0

1

0

0

1

0

1

0

1

1

1

0

0

1

0

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

1

1

1

0

1

0

0

1

0

1

0

1

1

1

0

0

1

0

1

0

1

0

0

1

0

1

0

1

1

1

0

0

1

0

0

0

0

 

SC140 DSP Core Reference Manual

A-61

Page 375
Image 375
Freescale Semiconductor SC140 specifications Asrr #$3,d5, Asrr d3,d5