Instruction Set ArchitectureIP2022 Users Manual
180
www.ubicom.com
MULU W,fr Unsigned Multiply W,fr into MULH || W
Operation:
W = W × fr; low 8 bits of unsigned product
MULH = W × fr; high 8 bits of unsigned product
Bits affected:
None
Opcode:
0101 000f ffff ffff
Description:
This instruction performs an unsigned multiply of
the contents of the specified data memory
location by the contents of W. The low 8 bits of the
product are written to W, and the high 8 bits are
written to the MULH register. The data memory
location is left unchanged.
Cycles:
1
Example:
mulu w,0x099;unsigned multiply,
;0x099 by W into W
This example multiplies the contents of the data
memory location at address 0x099 by the
contents of W into W. The high byte of the result
is loaded into the MULH register, and the low byte
is loaded into W.