IP2022 Users ManualInstruction Set Architecture
www.ubicom.com
181
MULU W,#lit8
Unsigned Multiply W,Literal into MULH || W
Operation:
W = W × lit8; low 8 bits of unsigned product
MULH = W × lit8; high 8 bits of unsigned product
Bits affected:
None
Opcode:
0111 0010 kkkk kkkk
Description:
This instruction performs an unsigned multiply of
an 8-bit literal 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,#0x75
This example multiplies the contents of W by the
literal 0x75 into W. The high byte of the result is
loaded into the MULH register, and the low byte is
loaded into W.