Specifications

Table Of Contents
8–72 Altera Corporation
Nios II Processor Reference Handbook October 2007
muli
muli
multiply immediate
Operation:
rB
(rA × σ(IMM16))
31..0
Assembler Syntax:
muli rB, rA, IMM16
Example:
muli r6, r7, -100
Description: Sign-extends the 16-bit immediate value IMM16 to 32 bits and multiplies it by the value
of rA. Stores the 32 low-order bits of the product to rB. The result is independent of
whether rA is treated as a signed or unsigned number.
Nios II processors that do not implement the
muli instruction cause an
unimplemented-instruction exception.
Carry Detection and Overflow Detection:
For a discussion of carry and overflow detection, see the
mul instruction.
Instruction Type: I
Instruction Fields: A = Register index of operand rA
B = Register index of operand rB
IMM16 = 16-bit signed immediate value
313029282726252423222120191817161514131211109876543210
A B IMM16 0x24