Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
© 2005-2011 Microchip Technology Inc. DS70157F-page 229
Section 5. Instruction Descriptions
Instruction
Descriptions
5
Example 1:
REPEAT #17 ; Execute DIVF 18 times
DIVF W8, W9 ; Divide W8 by W9
; Store quotient to W0, remainder to W1
Before
Instruction
After
Instruction
W0 8000 W0 2000
W1 1234 W1 0000
W8 1000 W8 1000
W9 4000 W9 4000
SR 0000 SR 0002 (Z = 1)
Example 2:
REPEAT #17 ; Execute DIVF 18 times
DIVF W8, W9 ; Divide W8 by W9
; Store quotient to W0, remainder to W1
Before
Instruction
After
Instruction
W0 8000 W0 F000
W1 1234 W1 0000
W8 1000 W8 1000
W9 8000 W9 8000
SR 0000 SR 0002 (Z = 1)
Example 3:
REPEAT #17 ; Execute DIVF 18 times
DIVF W0, W1 ; Divide W0 by W1
; Store quotient to W0, remainder to W1
Before
Instruction
After
Instruction
W0 8002 W0 7FFE
W1 8001 W1 8002
SR 0000 SR 0008 (N = 1)
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf