Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
© 2005-2011 Microchip Technology Inc. DS70157F-page 281
Section 5. Instruction Descriptions
Instruction
Descriptions
5
MOV
Move f to Wnd
Implemented in: PIC24F PIC24H PIC24E dsPIC30F dsPIC33F dsPIC33E
X X X X X X
Syntax: {label:} MOV f, Wnd
Operands: f ∈ [0 ... 65534]
Wnd ∈ [W0 ... W15]
Operation: (f) →Wnd
Status Affected: None
Encoding:
1000 0fff ffff ffff ffff dddd
Description: Move the word contents of the specified file register to Wnd. The file
register may reside anywhere in the 32K words of data memory, but must
be word-aligned. Register direct addressing must be used for Wnd.
The ‘f’ bits select the address of the file register.
The ‘d’ bits select the destination register.
Note 1: This instruction operates on word operands only.
2: Since the file register address must be word-aligned, only the
upper 15 bits of the file register address are encoded (bit 0 is
assumed to be ‘0’).
3: To move a byte of data from file register memory, the “MOV f
to Destination” instruction (page 279) may be used.
Words: 1
Cycles:
1
(1)
Note 1:
In dsPIC33E and PIC24E devices, the listed cycle count does not apply to read and
read-modify-write operations on non-CPU Special Function Registers. For more
details, see
Note 3
in
Section 3.2.1 “Multi-Cycle Instructions”
.
Example 1:
MOV CORCON, W12 ; move CORCON to W12
Before
Instruction
After
Instruction
W12 78FA W12 00F0
CORCON 00F0 CORCON 00F0
SR 0000 SR 0000
Example 2:
MOV 0x27FE, W3 ; move (0x27FE) to W3
Before
Instruction
After
Instruction
W3 0035 W3 ABCD
Data 27FE ABCD Data 27FE ABCD
SR 0000 SR 0000
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf