Nios II Classic Processor Reference Guide

ID 683620
Date 10/28/2016
Public
Document Table of Contents

8.5.63. movui

Instruction move unsigned immediate into word
Operation

rB ←  (0x0000 : IMMED)

Assembler Syntax

movui rB, IMMED

Example

movui r6, 100

Description

Zero-extends the immediate value IMMED to 32 bits and writes it to rB.

Usage

The maximum allowed value of IMMED is 65535. The minimum allowed value is 0. To load a 32-bit constant into a register, refer to the movhi instruction.

Pseudo-instruction

movui is implemented as ori rB, r0, IMMED.