Instruction Set ArchitectureIP2022 Users Manual
178
www.ubicom.com
MULS W,#lit8
Signed Multiply W,Literal into MULH || W
Operation:
W = W × lit8; low 8 bits of signed product
MULH = W × lit8; high 8 bits of signed product
Bits affected:
None
Opcode:
0111 0011 kkkk kkkk
Description:
This instruction performs a signed 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.
Both operands are interpreted as twos-
complement numbers, and the result loaded into
MULH || W is also in twos complement format.
Cycles:
1