Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
16-bit MCU and DSC Programmer’s Reference Manual
DS70157F-page 296 © 2005-2011 Microchip Technology Inc.
Example 1:
MPY W4*W5, A, [W8]+=2, W6, [W10]-=2, W7
; Multiply W4*W5 and store to ACCA
; Fetch [W8] to W6, Post-increment W8 by 2
; Fetch [W10] to W7, Post-decrement W10 by 2
; CORCON = 0x0000 (fractional multiply, no saturation)
Before
Instruction
After
Instruction
W4 C000 W4 C000
W5 9000 W5 9000
W6 0800 W6 671F
W7 B200 W7 E3DC
W8 1780 W8 1782
W10 2400 W10 23FE
ACCA FF F780 2087 ACCA 00 3800 0000
Data 1780 671F Data 1780 671F
Data 2400 E3DC Data 2400 E3DC
CORCON 0000 CORCON 0000
SR 0000 SR 0000
Example 2:
MPY W6*W7, B, [W8]+=2, W4, [W10]-=2, W5
; Multiply W6*W7 and store to ACCB
; Fetch [W8] to W4, Post-increment W8 by 2
; Fetch [W10] to W5, Post-decrement W10 by 2
; CORCON = 0x0000 (fractional multiply, no saturation)
Before
Instruction
After
Instruction
W4 C000 W4 8FDC
W5 9000 W5 0078
W6 671F W6 671F
W7 E3DC W7 E3DC
W8 1782 W8 1784
W10 23FE W10 23FC
ACCB 00 9834 4500 ACCB FF E954 3748
Data 1782 8FDC Data 1782 8FDC
Data 23FE 0078 Data 23FE 0078
CORCON 0000 CORCON 0000
SR 0000 SR 0000
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf