![](http://datasheet.mmic.net.cn/Microchip-Technology/PIC16LF1783-E-SP_datasheet_99486/PIC16LF1783-E-SP_340.png)
PIC18F2455/2550/4455/4550
DS39632E-page 338
2009 Microchip Technology Inc.
MOVFF
Move f to f
Syntax:
MOVFF fs,fd
Operands:
0
≤ fs ≤ 4095
0
≤ fd ≤ 4095
Operation:
(fs) → fd
Status Affected:
None
Encoding:
1st word (source)
2nd word (destin.)
1100
1111
ffff
ffffs
ffffd
Description:
The contents of source register ‘fs’ are
moved to destination register ‘fd’.
Location of source ‘fs’ can be anywhere
in the 4096-byte data space (000h to
FFFh) and location of destination ‘fd’
can also be anywhere from 000h to
FFFh.
Either source or destination can be W
(a useful special situation).
MOVFF is particularly useful for
transferring a data memory location to a
peripheral register (such as the transmit
buffer or an I/O port).
The MOVFF instruction cannot use the
PCL, TOSU, TOSH or TOSL as the
destination register.
Words:
2
Cycles:
2
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
register ‘f’
(src)
Process
Data
No
operation
Decode
No
operation
No dummy
read
No
operation
Write
register ‘f’
(dest)
Example:
MOVFF
REG1, REG2
Before Instruction
REG1
=
33h
REG2
=
11h
After Instruction
REG1
=
33h
REG2
=
33h
MOVLB
Move Literal to Low Nibble in BSR
Syntax:
MOVLW k
Operands:
0
≤ k ≤ 255
Operation:
k
→ BSR
Status Affected:
None
Encoding:
0000
0001
kkkk
Description:
The eight-bit literal ‘k’ is loaded into the
Bank Select Register (BSR). The value
of BSR<7:4> always remains ‘0’
regardless of the value of k7:k4.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
literal ‘k’
Process
Data
Write literal
‘k’ to BSR
Example:
MOVLB
5
Before Instruction
BSR Register =
02h
After Instruction
BSR Register =
05h