32-Bit Instruction Set

 

LSR

 

Logical Shift Right

Operation:

RA (RA >> RB[4..0]), zero-fill from left

Assembler Syntax:

LSR %rA,%rB

Example:

LSR %L3,%g0 ; Shift %L3 right by %g0 bits

Description:

The value in RA is shifted-right by the number of bits indicated by RB [4..0] (bits

 

RB[31..5] are ignored). The result is zero-filled from the left.

Condition Codes:

 

 

Flags: Unaffected

 

 

 

 

 

 

 

 

 

 

 

 

 

 

N

 

V

Z

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Format:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Fields:

 

 

A = Register index of RA operand

 

 

 

 

 

 

 

 

 

 

 

 

 

B = Register index of RB operand

 

 

 

 

 

 

 

15

14

13

 

12

11

10

 

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

1

 

0

0

0

 

 

 

 

 

B

 

 

 

 

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

32-Bit Instruction Set

Altera Corporation

65

Page 77
Image 77
Excalibur electronic A-MNL-NIOSPROG-01.1 manual Lsr, Logical Shift Right