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 176 © 2005-2011 Microchip Technology Inc.
Example 1:
BTSTS.C [W0++], #0x3 ; Set C = bit 3 in [W0]
; Set bit 3 in [W0] = 1
; Post-increment W0
Before
Instruction
After
Instruction
W0 1200 W0 1202
Data 1200 FFF7 Data 1200 FFFF
SR 0001 (C = 1) SR 0000
Example 2:
BTSTS.Z W0, #0x7 ; Set Z = complement of bit 7
; in W0, and set bit 7 in W0 = 1
Before
Instruction
After
Instruction
W0 F234 W0 F2BC
SR 0000 SR 0002 (Z = 1)

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh