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 156 © 2005-2011 Microchip Technology Inc.
Example 2:
BSW.Z W2, W3 ; Set bit W3 in W2 to the complement
; of the Z bit
Before
Instruction
After
Instruction
W2 E235 W2 E234
W3 0550 W3 0550
SR 0002 (Z = 1, C = 0) SR 0002 (Z = 1, C = 0)
Example 3:
BSW.C [++W0], W6 ; Set bit W6 in [W0++] to the value
; of the C bit
Before
Instruction
After
Instruction
W0 1000 W0 1002
W6 34A3 W6 34A3
Data 1002 2380 Data 1002 2388
SR 0001 (Z = 0, C = 1) SR 0001 (Z = 0, C = 1)
Example 4:
BSW.Z [W1--], W5 ; Set bit W5 in [W1] to the
; complement of the Z bit
; Post-decrement W1
Before
Instruction
After
Instruction
W1 1000 W1 0FFE
W5 888B W5 888B
Data 1000 C4DD Data 1000 CCDD
SR 0001 (C = 1) SR 0001 (C = 1)
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf