# Vault 7: Projects

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

### Protego

# PIC24FJ64GA004 - Programmers Reference Manual

- 1
- 2
…
- 38
- 39
- 40
- 41
- 42
…
- 501
- 502

16-bit MCU and DSC Programmer’s Reference Manual
DS70157F-page 40 © 2005-2011 Microchip Technology Inc.
3.3 INSTRUCTION SET SUMMARY TABLES
Table 3-2: Move Instructions
Assembly Syntax Description Words Cycles
Page
Number
EXCH Wns,Wnd
Swap Wns and Wnd 1 1 243
MOV f {,WREG}
(1)
Move f to destination 1 1 279
MOV WREG,f Move WREG to f 1 1 280
MOV f,Wnd Move f to Wnd 1 1
(4)
281
MOV Wns,f Move Wns to f 1 1 282
MOV.B #lit8,Wnd Move 8-bit literal to Wnd 1 1 283
MOV #lit16,Wnd Move 16-bit literal to Wnd 1 1 284
MOV [Ws+Slit10],Wnd Move [Ws + signed 10-bit offset] to Wnd 1 1
(4)
285
MOV Wns,[Wd+Slit10] Move Wns to [Wd + signed 10-bit offset] 1 1 286
MOV Wso,Wdo Move Wso to Wdo 1 1
(4)
287
MOV.D Ws,Wnd Move double Ws to Wnd:Wnd + 1 1 2
(4)
289
MOV.D Wns,Wd Move double Wns:Wns + 1 to Wd 1 2 289
MOVPAG #lit10,DSRPAG
(2)
Move 10-bit literal to DSRPAG 1 1 291
MOVPAG #lit9,DSWPAG
(2)
Move 9-bit literal to DSWPAG 1 1 291
MOVPAG #lit8,TBLPAG
(2)
Move 8-bit literal to TBLPAG 1 1 291
MOVPAG Wn, DSRPAG
(2)
Move Wn to DSRPAG 1 1 292
MOVPAG Wn, DSWPAG
(2)
Move Wn to DSWPAG 1 1 292
MOVPAG Wn, TBLPAG
(2)
Move Wn to TBLPAG 1 1 292
SWAP Wn Wn = byte or nibble swap Wn 1 1 426
TBLRDH [Ws],Wd Read high program word to Wd 1 2
(3)
427
TBLRDL [Ws],Wd Read low program word to Wd 1 2
(3)
429
TBLWTH Ws,[Wd] Write Ws to high program word 1 2
(4)
431
TBLWTL Ws,[Wd] Write Ws to low program word 1 2
(4)
433
Note 1: When the optional {,WREG} operand is specified, the destination of the instruction is WREG. When
{,WREG} is not specified, the destination of the instruction is the file register f.
2: The MOVPAG instruction is only available in dsPIC33E and PIC24E devices.
3: In dsPIC33E and PIC24E devices, these instructions require 3 additional cycles – compared to dsPIC30F,
dsPIC33F, PIC24F and PIC24H devices.
4: In dsPIC33E and PIC24E devices, read and read-modify-write operations on non-CPU Special Function
Registers require an additional cycle when compared to dsPIC30F, dsPIC33F, PIC24F and PIC24H
devices.

- 1
- 2
…
- 38
- 39
- 40
- 41
- 42
…
- 501
- 502