Datasheet

PIC17C7XX
DS30289C-page 216 1998-2013 Microchip Technology Inc.
MOVFP Move f to p
Syntax: [label] MOVFP f,p
Operands: 0 f 255
0 p 31
Operation: (f) (p)
Status Affected: None
Encoding:
011p pppp ffff ffff
Description:
Move data from data memory location 'f'
to data memory location 'p'. Location 'f'
can be anywhere in the 256 byte data
space (00h to FFh), while 'p' can be 00h
to 1Fh.
Either ’p' or 'f' can be WREG (a useful,
special situation).
MOVFP is particularly useful for transfer-
ring a data memory location to a periph-
eral register (such as the transmit buffer
or an I/O port). Both 'f' and 'p' can be
indirectly addressed.
Words: 1
Cycles: 1
Q Cycle Activity:
Q1 Q2 Q3 Q4
Decode Read
register 'f'
Process
Data
Write
register 'p'
Example:
MOVFP REG1, REG2
Before Instruction
REG1 = 0x33,
REG2 = 0x11
After Instruction
REG1 = 0x33,
REG2 = 0x33
MOVLB Move Literal to low nibble in BSR
Syntax: [
label
] MOVLB k
Operands: 0 k 15
Operation: k (BSR<3:0>)
Status Affected: None
Encoding:
1011 1000 uuuu kkkk
Description:
The four-bit literal 'k' is loaded in the
Bank Select Register (BSR). Only the
low 4-bits of the Bank Select Register
are affected. The upper half of the BSR
is unchanged. The assembler will
encode the “u” fields as '0'.
Words: 1
Cycles: 1
Q Cycle Activity:
Q1 Q2 Q3 Q4
Decode Read
literal 'k'
Process
Data
Write literal
'k' to
BSR<3:0>
Example:
MOVLB 5
Before Instruction
BSR register = 0x22
After Instruction
BSR register = 0x25 (Bank 5)