P60ARM-B/IG/GP1N Zarlink Semiconductor, Inc., P60ARM-B/IG/GP1N Datasheet - Page 48

no-image

P60ARM-B/IG/GP1N

Manufacturer Part Number
P60ARM-B/IG/GP1N
Description
A Low Power, General Purpose 32 Bit RISC Microprocessor
Manufacturer
Zarlink Semiconductor, Inc.
Datasheet
P60ARM-B
4.8.4 Use of the S bit
When the S bit is set in a LDM/STM instruction its meaning depends on whether or not R15 is in the transfer
list and on the type of instruction. The S bit should only be set if the instruction is to execute in a privileged
mode.
LDM with R15 in transfer list and S bit set (Mode changes)
If the instruction is a LDM then SPSR_<mode> is transferred to CPSR at the same time as R15 is loaded.
STM with R15 in transfer list and S bit set (User bank transfer)
The registers transferred are taken from the User bank rather than the bank corresponding to the current
mode. This is useful for saving the user state on process switches. Base write-back shall not be used when
this mechanism is employed.
R15 not in list and S bit set (User bank transfer)
For both LDM and STM instructions, the User bank registers are transferred rather than the register bank
corresponding to the current mode. This is useful for saving the user state on process switches. Base write-
back shall not be used when this mechanism is employed.
When the instruction is LDM, care must be taken not to read from a banked register during the following
cycle (inserting a NOP after the LDM will ensure safety).
44
Rn
R5
R1
1
3
Figure 22: Pre-decrement addressing
0x100C
0x1000
0x0FF4
0x100C
0x1000
0x0FF4
Rn
R1
R7
R5
R1
2
4
0x100C
0x1000
0x0FF4
0x100C
0x1000
0x0FF4

Related parts for P60ARM-B/IG/GP1N