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 182 © 2005-2011 Microchip Technology Inc.
Example 1:
001002 CALL W0
001004 ...
. ...
001600 _BOOT: MOV #0x400, W2
001602 MOV #0x300, W6
. ...
; Call BOOT subroutine indirectly
; using W0
; _BOOT starts here
Before
Instruction
After
Instruction
PC 00 1002 PC 00 1600
W0 1600 W0 1600
W15 6F00 W15 6F04
Data 6F00 FFFF Data 6F00 1004
Data 6F02 FFFF Data 6F02 0000
SR 0000 SR 0000
Example 2:
004200 CALL W7
004202 ...
. ...
005500 _TEST: INC W1, W2
005502 DEC W1, W3
. ...
; Call TEST subroutine indirectly
; using W7
; _TEST starts here
;
Before
Instruction
After
Instruction
PC 00 4200 PC 00 5500
W7 5500 W7 5500
W15 6F00 W15 6F04
Data 6F00 FFFF Data 6F00 4202
Data 6F02 FFFF Data 6F02 0000
SR 0000 SR 0000
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf