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 340 © 2005-2011 Microchip Technology Inc.
Example 2:
POP.D W0 ; Double pop TOS to W0
Before
Instruction
After
Instruction
W0 673E W0 791C
W1 DD23 W1 D400
W15 0BBC W15 0BB8
Data 0BB8 791C Data 0BB8 791C
Data 0BBA D400 Data 0BBA D400
SR 0000 SR 0000
POP.S
Pop Shadow Registers
Implemented in: PIC24F PIC24H PIC24E dsPIC30F dsPIC33F dsPIC33E
X X X X X X
Syntax: {label:} POP.S
Operands: None
Operation: POP shadow registers
Status Affected: DC, N, OV, Z, C
Encoding:
1111 1110 1000 0000 0000 0000
Description: The values in the shadow registers are copied into their respective
primary registers. The following registers are affected: W0-W3, and the
C, Z, OV, N and DC STATUS register flags.
Note 1: The shadow registers are not directly accessible. They may
only be accessed with PUSH.S and POP.S.
2: The shadow registers are only one-level deep.
Words: 1
Cycles: 1
Example 1:
POP.S ; Pop the shadow registers
; (See PUSH.S Example 1 for contents of shadows)
Before
Instruction
After
Instruction
W0 07BB W0 0000
W1 03FD W1 1000
W2 9610 W2 2000
W3 7249 W3 3000
SR 00E0 (IPL = 7) SR 00E1 (IPL = 7, C = 1)
Note: After instruction execution, contents of shadow registers are NOT modified.

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh