ARM CPSR/SPSR 的示意圖


        ENTRY                           
	EXPORT	__main
__main
SVC_Stack
Mode_SVC	EQU	0x13
I_Bit		EQU	0x80
F_Bit		EQU	0x40

; Set up the SVC stack pointer and return to SVC mode
	MOV		R0, #Mode_SVC:OR:I_Bit:OR:F_Bit ; No interrupts
	MSR		CPSR_c, R0

	LDR		sp, =STACK_ADDR

	nop
	nop
	nop
	nop
	nop
	nop


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章