Specifications

Table Of Contents
8–92 Altera Corporation
Nios II Processor Reference Handbook October 2007
srli
srli
shift right logical immediate
Operation:
rC
(unsigned) rA >> ((unsigned) IMM5)
Assembler Syntax:
srli rC, rA, IMM5
Example:
srli r6, r7, 3
Description: Shifts rA right by the number of bits specified in IMM5 (inserting zeroes), and then
stores the result in rC.
Usage:
srli performs the unsigned >> operation of the C programming language.
Instruction Type: R
Instruction Fields: A = Register index of operand rA
C = Register index of operand rC
IMM5 = 5-bit unsigned immediate value
313029282726252423222120191817161514131211109876543210
A 0 C 0x1a IMM5 0x3a