SPH
Store High PREG
7-162
Cycles for a Repeat (RPT) Execution of an SPH Instruction
Program
Operand
ROM
DARAM
SARAM
External
DARAM
n
n
n
n+p
SARAM
n
n
n, n+2
†
n+p
External
2n+nd
2n+nd
2n+nd
2n+2+nd+p
† If the operand and the code are in the same SARAM block
Example 1
SPH
DAT3
;(DP = 4: addresses 0200h–027Fh,
;PM = 0: no shift)
Before Instruction
After Instruction
PREG
FE079844h
PREG
FE079844h
Data Memory
Data Memory
203h
4567h
203h
FE07h
Example 2
SPH
*,AR7
;(PM = 2: left shift of four)
Before Instruction
After Instruction
ARP
6
ARP
7
AR6
203h
AR6
203h
PREG
FE079844h
PREG
FE079844h
Data Memory
Data Memory
203h
4567h
203h
E079h