Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
© 2005-2011 Microchip Technology Inc. DS70157F-page 59
Section 4. Instruction Set Details
Instruction Set
Details
4
Example 4-7: Immediate Addressing
4.1.5 Data Addressing Mode Tree
The Data Addressing modes of the PIC24F, PIC24H, and PIC24E families are summarized in
Figure 4-1.
Figure 4-1: Data Addressing Mode Tree (PIC24F, PIC24H, and PIC24E)
The Data Addressing modes of the dsPIC30F, dsPIC33F, and dsPIC33E are summarized in
Figure 4-2.
PWRSAV #1 ; Enter IDLE mode
ADD.B #0x10, W0 ; Add 0x10 to W0 (byte mode)
Before Instruction:
W0 = 0x12A9
After Instruction:
W0 = 0x12B9
XOR W0, #1, [W1++] ; Exclusive-OR W0 and 0x1
; Store the result to [W1]
; Post-increment W1
Before Instruction:
W0 = 0xFFFF
W1 = 0x0890
Data Memory 0x0890 = 0x0032
After Instruction:
W0 = 0xFFFF
W1 = 0x0892
Data Memory 0x0890 = 0xFFFE
Data Addressing Modes
Immediate
File Register
Pre-Increment
Pre-Decrement
Post-Increment
Post-Decrement
Register Offset
Literal Offset
No Modification
Direct
Indirect
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf