# Vault 7: Projects

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

### Protego

# PIC24FJ64GA004 - Programmers Reference Manual

- 1
- 2
…
- 280
- 281
- 282
- 283
- 284
…
- 501
- 502

16-bit MCU and DSC Programmer’s Reference Manual
DS70157F-page 282 © 2005-2011 Microchip Technology Inc.
MOV
Move Wns to f
Implemented in: PIC24F PIC24H PIC24E dsPIC30F dsPIC33F dsPIC33E
X X X X X X
Syntax: {label:} MOV Wns, f
Operands: f ∈ [0 ... 65534]
Wns ∈ [W0 ... W15]
Operation: (Wns) →f
Status Affected: None
Encoding: 1000 1fff ffff ffff ffff ssss
Description: Move the word contents of the working register Wns to the specified file
register. 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 Wn.
The ‘f’ bits select the address of the file register.
The ‘s’ bits select the source 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 to file register memory, the “MOV WREG
to f” instruction (page 280) may be used.
Words: 1
Cycles: 1
Example 1:
MOV W4, XMDOSRT ; move W4 to XMODSRT
Before
Instruction
After
Instruction
W4 1200 W4 1200
XMODSRT 1340 XMODSRT 1200
SR 0000 SR 0000
Example 2:
MOV W8, 0x1222 ; move W8 to data address 0x1222
Before
Instruction
After
Instruction
W8 F200 W8 F200
Data 1222 FD88 Data 1222 F200
SR 0000 SR 0000

- 1
- 2
…
- 280
- 281
- 282
- 283
- 284
…
- 501
- 502