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 302 © 2005-2011 Microchip Technology Inc.
Example 1:
MSC W6*W7, A, [W8]-=4, W6, [W10]-=4, W7
; Multiply W6*W7 and subtract the result from ACCA
; Fetch [W8] to W6, Post-decrement W8 by 4
; Fetch [W10] to W7, Post-decrement W10 by 4
; CORCON = 0x0001 (integer multiply, no saturation)
Before
Instruction
After
Instruction
W6 9051 W6 D309
W7 7230 W7 100B
W8 0C00 W8 0BFC
W10 1C00 W10 1BFC
ACCA 00 0567 8000 ACCA 00 3738 5ED0
Data 0C00 D309 Data 0C00 D309
Data 1C00 100B Data 1C00 100B
CORCON 0001 CORCON 0001
SR 0000 SR 0000
Example 2:
MSC W4*W5, B, [W11+W12], W5, W13
; Multiply W4*W5 and subtract the result from ACCB
; Fetch [W11+W12] to W5
; Write Back ACCA to W13
; CORCON = 0x0000 (fractional multiply, no saturation)
Before
Instruction
After
Instruction
W4 0500 W4 0500
W5 2000 W5 3579
W11 1800 W11 1800
W12 0800 W12 0800
W13 6233 W13 3738
ACCA 00 3738 5ED0 ACCA 00 3738 5ED0
ACCB 00 1000 0000 ACCB 00 0EC0 0000
Data 2000 3579 Data 2000 3579
CORCON 0000 CORCON 0000
SR 0000 SR 0000
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf