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 278 © 2005-2011 Microchip Technology Inc.
Example 1:
MAC W4*W4, B, [W9+W12], W4, [W10]-=2, W5
; Square W4 and add to ACCB
; Fetch [W9+W12] to W4
; Fetch [W10] to W5, Post-decrement W10 by 2
; CORCON = 0x00C0 (fractional multiply, normal saturation)
Before
Instruction
After
Instruction
W4 A022 W4 A230
W5 B200 W5 650B
W9 0C00 W9 0C00
W10 1900 W10 18FE
W12 0020 W12 0020
ACCB 00 2000 0000 ACCB 00 67CD 0908
Data 0C20 A230 Data 0C20 A230
Data 1900 650B Data 1900 650B
CORCON 00C0 CORCON 00C0
SR 0000 SR 0000
Example 2:
MAC W7*W7, A, [W11]-=2, W7
; Square W7 and add to ACCA
; Fetch [W11] to W7, Post-decrement W11 by 2
; CORCON = 0x00D0 (fractional multiply, super saturation)
Before
Instruction
After
Instruction
W7 76AE W7 23FF
W11 2000 W11 1FFE
ACCA FE 9834 4500 ACCA FF 063E 0188
Data 2000 23FF Data 2000 23FF
CORCON 00D0 CORCON 00D0
SR 0000 SR 8800 (OA, OAB = 1)

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh