P60ARM-B/IG/GP1Q Zarlink Semiconductor, Inc., P60ARM-B/IG/GP1Q Datasheet - Page 51

no-image

P60ARM-B/IG/GP1Q

Manufacturer Part Number
P60ARM-B/IG/GP1Q
Description
Microprocessor, 32-Bit Data Bus, 30MHz Processor, 100-QFP
Manufacturer
Zarlink Semiconductor, Inc.
Datasheet
IA, IB, DA, DB allow control when LDM/STM are not being used for stacks and simply mean Increment
After, Increment Before, Decrement After, Decrement Before.
4.8.10 Examples
These instructions may be used to save state on subroutine entry, and restore it efficiently on return to the
calling routine:
LDMFD
STMIA
LDMFD
LDMFD
STMFD
STMED
BL
LDMED
SP!,{R0,R1,R2}
R0,{R0-R15}
SP!,{R15}
SP!,{R15}^
R13,{R0-R14}^
SP!,{R0-R3,R14}
somewhere
SP!,{R0-R3,R15}
; unstack 3 registers
; save all registers
; R15 <- (SP),CPSR unchanged
; R15 <- (SP), CPSR <- SPSR_mode (allowed
;
; Save user mode regs on stack (allowed
;
; save R0 to R3 to use as workspace
;
; this nested call will overwrite R14
; restore workspace and return
only in privileged modes)
only in privileged modes)
and R14 for returning
Instruction Set - LDM, STM
47

Related parts for P60ARM-B/IG/GP1Q