Specifications

Table Of Contents
Altera Corporation 8–91
October 2007 Nios II Processor Reference Handbook
srl
srl
shift right logical
Operation:
rC
(unsigned) rA >> ((unsigned) rB
4..0
)
Assembler Syntax:
srl rC, rA, rB
Example:
srl r6, r7, r8
Description: Shifts rA right by the number of bits specified in rB
4..0
(inserting zeroes), and then
stores the result in rC. Bits 31–5 are ignored.
Usage:
srl performs the unsigned >> operation of the C programming language.
Instruction Type: R
Instruction Fields: A = Register index of operand rA
B = Register index of operand rB
C = Register index of operand rC
313029282726252423222120191817161514131211109876543210
ABC0x1b00x3a