Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
© 2005-2011 Microchip Technology Inc. DS70157F-page 245
Section 5. Instruction Descriptions
Instruction
Descriptions
5
Example 1:
FBCL W1, W9 ; Find 1st bit change from left in W1
; and store result to W9
Before
Instruction
After
Instruction
W1 55FF W1 55FF
W9 FFFF W9 0000
SR 0000 SR 0000
Example 2:
FBCL W1, W9 ; Find 1st bit change from left in W1
; and store result to W9
Before
Instruction
After
Instruction
W1 FFFF W1 FFFF
W9 BBBB W9 FFF1
SR 0000 SR 0001 (C = 1)
Example 3:
FBCL [W1++], W9 ; Find 1st bit change from left in [W1]
; and store result to W9
; Post-increment W1
Before
Instruction
After
Instruction
W1 2000 W1 2002
W9 BBBB W9 FFF9
Data 2000 FF0A Data 2000 FF0A
SR 0000 SR 0000
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf