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 280 © 2005-2011 Microchip Technology Inc.
MOV
Move WREG to f
Implemented in: PIC24F PIC24H PIC24E dsPIC30F dsPIC33F dsPIC33E
X X X X X X
Syntax: {label:} MOV{.B} WREG, f
Operands: f [0 ... 8191]
Operation: (WREG) f
Status Affected: None
Encoding: 1011 0111 1B1f ffff ffff ffff
Description: Move the contents of the default working register WREG into the
specified file register.
The ‘B’ bit selects byte or word operation (‘0’ for word, ‘1’ for byte).
The ‘f’ bits select the address of the file register.
Note 1: The extension .B in the instruction denotes a byte move rather
than a word move. You may use a .W extension to denote a
word move, but it is not required.
2: The WREG is set to working register W0.
3: When moving word data from the working register array to file
register memory, the “MOV Wns to f” (page 282) instruction
allows any working register (W0:W15) to be the source regis-
ter.
Words: 1
Cycles: 1
Example 1:
MOV.B WREG, 0x801 ; move WREG to 0x801 (Byte mode)
Before
Instruction
After
Instruction
WREG (W0) 98F3 WREG (W0) 98F3
Data 0800 4509 Data 0800 F309
SR 0000 SR 0008 (N = 1)
Example 2:
MOV WREG, DISICNT ; move WREG to DISICNT
Before
Instruction
After
Instruction
WREG (W0) 00A0 WREG (W0) 00A0
DISICNT 0000 DISICNT 00A0
SR 0000 SR 0000

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh