Nios® II Processor Reference Guide

ID 683836
Date 10/22/2020
Public
Document Table of Contents

8.5.61. movi

Instruction 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, refer to the movhi instruction.

Pseudo-instruction

movi is implemented as addi rB, r0, IMMED.

Did you find the information on this page useful?

Characters remaining:

Feedback Message