English
Language : 

PIC18LF2X_13 Datasheet, PDF (418/560 Pages) Microchip Technology – PIC18(L)F2X/45K50 USB Flash MCU Product Brief
PIC18(L)F2X/4XK22
MOVSS
Move Indexed to Indexed
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
1st word (source)
2nd word (dest.)
Description
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Decode
MOVSS [zs], [zd]
0  zs  127
0  zd  127
((FSR2) + zs)  ((FSR2) + zd)
None
1110
1111
1011
xxxx
1zzz zzzzs
xzzz zzzzd
The contents of the source register are
moved to the destination register. The
addresses of the source and destination
registers are determined by adding the
7-bit literal offsets ‘zs’ or ‘zd’,
respectively, to the value of FSR2. Both
registers can be located anywhere in
the 4096-byte data memory space
(000h to FFFh).
The MOVSS instruction cannot use the
PCL, TOSU, TOSH or TOSL as the
destination register.
If the resultant source address points to
an indirect addressing register, the
value returned will be 00h. If the
resultant destination address points to
an indirect addressing register, the
instruction will execute as a NOP.
2
2
Q2
Q3
Determine Determine
source addr source addr
Determine Determine
dest addr dest addr
Q4
Read
source reg
Write
to dest reg
Example:
MOVSS [05h], [06h]
Before Instruction
FSR2
Contents
of 85h
Contents
of 86h
= 80h
= 33h
= 11h
After Instruction
FSR2
Contents
of 85h
Contents
of 86h
= 80h
= 33h
= 33h
PUSHL
Store Literal at FSR2, Decrement FSR2
Syntax:
PUSHL k
Operands:
0k  255
Operation:
k  (FSR2),
FSR2 – 1  FSR2
Status Affected: None
Encoding:
1111 1010 kkkk kkkk
Description:
The 8-bit literal ‘k’ is written to the data
memory address specified by FSR2. FSR2
is decremented by 1 after the operation.
This instruction allows users to push values
onto a software stack.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Decode
Q2
Read ‘k’
Q3
Process
data
Q4
Write to
destination
Example:
PUSHL 08h
Before Instruction
FSR2H:FSR2L
=
Memory (01ECh)
=
After Instruction
FSR2H:FSR2L
=
Memory (01ECh)
=
01ECh
00h
01EBh
08h
DS41412F-page 418
 2010-2012 Microchip Technology Inc.