# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# PIC24FJ64GA004 - Programmers Reference Manual

- 1
- 2
…
- 326
- 327
- 328
- 329
- 330
…
- 501
- 502

16-bit MCU and DSC Programmer’s Reference Manual
DS70157F-page 328 © 2005-2011 Microchip Technology Inc.
MULW.SU
Integer 16x16-bit Signed-Unsigned Short Literal Multiply
with 16-bit Result
Implemented in: PIC24F PIC24H PIC24E dsPIC30F dsPIC33F dsPIC33E
X X
Syntax: {label:} MULW.SU Wb, #lit5, Wnd
Operands: Wb ∈ [W0 ... W15]
lit5 ∈ [0 ... 31]
Wnd ∈ [W0, W2, W4 ... W12]
Operation: signed (Wb) * unsigned (lit5) → Wnd
Status Affected: None
Encoding:
1011 1001 0www wddd d11k kkkk
Description: Multiply the contents of Wb with a 5-bit literal value, and store the result
in a working register, which must be an even numbered working register.
The Wb operand and the result Wnd are interpreted as a two’s
complement signed integer. Register direct addressing must be used for
Wb and Wnd.
The ‘w’ bits select the address of the base register.
The ‘d’ bits select the address of the lower destination register.
The ‘k’ bits select the 5-bit literal value.
Note 1: This instruction operates in Word mode only.
2: Wnd must be an even working register.
3: Wnd may not be W14, since W15<0> is fixed to zero.
4: The IF bit and the US<1:0> bits in the CORCON register have
no effect on this operation.
Words: 1
Cycles: 1
Example 1:
MULW.SU W8, #0x04, W0 ; Multiply W8 * #0x04
; Store the result to W0
Before
Instruction
After
Instruction
W0 68DC W0 4000
W8 1000 W8 1000
SR 0000 SR 0000

- 1
- 2
…
- 326
- 327
- 328
- 329
- 330
…
- 501
- 502