English
Language : 

PIC18F97J60_11 Datasheet, PDF (420/492 Pages) Microchip Technology – 64/80/100-Pin, High-Performance, 1-Mbit Flash Microcontrollers with Ethernet
PIC18F97J60 FAMILY
MOVSS
Move Indexed to Indexed
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
1st word (source)
2nd word (dest.)
Description
MOVSS [zs], [zd]
0  zs  127
0  zd  127
((FSR2) + zs)  ((FSR2) + zd)
None
1110 1011 1zzz zzzzs
1111 xxxx 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.
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Decode
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
Determine
source addr
Determine
dest addr
Q3
Determine
source addr
Determine
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:
Operation:
0k  255
k  (FSR2),
FSR2 – 1  FSR2
Status Affected: None
Encoding:
1110 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
DS39762F-page 420
 2011 Microchip Technology Inc.