Specifications

Table Of Contents
8–68 Altera Corporation
Nios II Processor Reference Handbook October 2007
movi
movi
move signed immediate into word
Operation:
rB
σ (IMMED)
Assembler Syntax:
movi rB, IMMED
Example:
movi r6, -30
Description: Sign-extends the immediate value IMMED to 32 bits and writes it to rB.
Usage: The maximum allowed value of IMMED is 32767. The minimum allowed value is
–32768. To load a 32-bit constant into a register, see the
movhi instruction.
Pseudoinstruction:
movi is implemented as addi rB, r0, IMMED.