Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
© 2005-2011 Microchip Technology Inc. DS70157F-page 227
Section 5. Instruction Descriptions
Instruction
Descriptions
5
Example 1:
REPEAT #17 ; Execute DIV.U 18 times
DIV.U W2, W4 ; Divide W2 by W4
; Store quotient to W0, remainder to W1
Before
Instruction
After
Instruction
W0 5555 W0 0040
W1 1234 W1 0000
W2 8000 W2 8000
W4 0200 W4 0200
SR 0000 SR 0002 (Z = 1)
Example 2:
REPEAT #17 ; Execute DIV.UD 18 times
DIV.UD W10, W12 ; Divide W11:W10 by W12
; Store quotient to W0, remainder to W1
Before
Instruction
After
Instruction
W0 5555 W0 01F2
W1 1234 W1 0100
W10 2500 W10 2500
W11 0042 W11 0042
W12 2200 W12 2200
SR 0000 SR 0000
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf