English
Language : 

PIC17C7XX Datasheet, PDF (214/328 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM Microcontrollers with 10-bit A/D
PIC17C7XX
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
Decode
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write
register 'p'
Example:
MOVFP REG1, REG2
Before Instruction
REG1
=
REG2
=
0x33,
0x11
After Instruction
REG1
=
REG2
=
0x33,
0x33
MOVLB
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Move Literal to low nibble in BSR
[ label ] MOVLB k
0 ≤ k ≤ 15
k → (BSR<3:0>)
None
1011 1000 uuuu kkkk
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'.
1
1
Q2
Read
literal 'k'
Q3
Process
Data
Q4
Write literal
'k' to
BSR<3:0>
Example:
MOVLB 5
Before Instruction
BSR register = 0x22
After Instruction
BSR register = 0x25 (Bank 5)
DS30289A-page 214
© 1998 Microchip Technology Inc.