Specifications
Example
movia r6, function_address
Description
Writes the address of label to rB.
Pseudo-instruction
movia is implemented as:
orhi rB, r0, %hiadj(label)
addi rB, rB, %lo(label)
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.
mul
Instruction
multiply
Operation
rC ← (rA x rB)
31..0
Assembler Syntax
mul rC, rA, rB
Example
mul r6, r7, r8
Description
Multiplies rA times rB and stores the 32 low-order bits of the
product to rC. The result is the same whether the operands are
treated as signed or unsigned integers.
Nios II processors that do not implement the mul instruction
cause an unimplemented instruction exception.
NII51017
2015.04.02
movui
8-57
Instruction Set Reference
Altera Corporation
Send Feedback