Vault 7: Projects

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

16-bit MCU and DSC Programmer’s Reference Manual
DS70157F-page 284 © 2005-2011 Microchip Technology Inc.
MOV
Move 16-bit Literal to Wnd
Implemented in: PIC24F PIC24H PIC24E dsPIC30F dsPIC33F dsPIC33E
X X X X X X
Syntax: {label:} MOV #lit16, Wnd
Operands: lit16 [-32768 ... 65535]
Wnd [W0 ... W15]
Operation: lit16 Wnd
Status Affected: None
Encoding:
0010 kkkk kkkk kkkk kkkk dddd
Description: The 16-bit literal ‘k’ is loaded into Wnd. Register direct addressing must
be used for Wnd.
The ‘k’ bits specify the value of the literal.
The ‘d’ bits select the address of the working register.
Note 1: This instruction operates only in Word mode.
2: The literal may be specified as a signed value [-32768:32767],
or unsigned value [0:65535].
Words: 1
Cycles: 1
Example 1:
MOV #0x4231, W13 ; load W13 with #0x4231
Before
Instruction
After
Instruction
W13 091B W13 4231
SR 0000 SR 0000
Example 2:
MOV #0x4, W2 ; load W2 with #0x4
Before
Instruction
After
Instruction
W2 B004 W2 0004
SR 0000 SR 0000
Example 3:
MOV #-1000, W8 ; load W8 with #-1000
Before
Instruction
After
Instruction
W8 23FF W8 FC18
SR 0000 SR 0000

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh