1. 程式人生 > >Arm處理器寄存器介紹及匯編基礎

Arm處理器寄存器介紹及匯編基礎

狀態 defined bubuko arm處理器 TP TE nsf 匯編 arm尋址

1. ARM處理器支持7種工作模式

· User (usr):      The normal ARM program execution state
· FIQ (fiq):      Designed to support a data transfer or channel process
· IRQ (irq):      Used for general-purpose interrupt handling
· Supervisor (svc):   Protected mode for the operating system
· Abort mode (abt):   Entered after a data or instruction prefetch abort
· System (sys):    A privileged user mode for the operating system
· Undefined (und):   Entered when an undefined instruction is executed

2. ARM狀態寄存器(CPRS)

技術分享圖片

3. ARM尋址方式

①立即數尋址: ADD R0, R1, #0x01

②寄存器尋址:ADD R0, R1, R2

③寄存器間接尋址:LDR R0, [R2];

④基址變址尋址:LDR R0, [R1,#4]

⑤相對尋址:BL

4. ARM匯編指令介紹

Arm處理器寄存器介紹及匯編基礎