Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
© 2005-2011 Microchip Technology Inc. DS70157F-page 111
Section 5. Instruction Descriptions
Instruction
Descriptions
5
Example 1:
ADDC.B W0,[W1++],[W2++] ; Add W0, [W1] and C bit (Byte mode)
; Store the result in [W2]
; Post-increment W1, W2
Before
Instruction
After
Instruction
W0 CC20 W0 CC20
W1 0800 W1 0801
W2 1000 W2 1001
Data 0800 AB25 Data 0800 AB25
Data 1000 FFFF Data 1000 FF46
SR 0001 (C = 1) SR 0000
Example 2:
ADDC W3,[W2++],[W1++] ; Add W3, [W2] and C bit (Word mode)
; Store the result in [W1]
; Post-increment W1, W2
Before
Instruction
After
Instruction
W1 1000 W1 1002
W2 2000 W2 2002
W3 0180 W3 0180
Data 1000 8000 Data 1000 2681
Data 2000 2500 Data 2000 2500
SR 0001 (C = 1) SR 0000
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf