[請益] 如何讀懂arm 組語?

作者: zzss2003 (brotherD)   2018-11-23 14:00:40
hi,各位好。
小弟剛接觸arm系列,對於很多觀念都還不清楚,想藉由這個例子請教各位大大該如何讀懂
arm的組語,以下三行為我在程式碼看到的組語
IDE: Code Composer Studio
compiler: 不會看
CPU: arm cortex-a8
chip: TI am335x
圖: https://imgur.com/a/upkoQxM
MRS R1, CPSR;
AND R1, #0x80;
STR R1, [R0];
參考手冊: ARM and Thumb Assembler Instructions.pdf
作者: chuegou (chuegou)   2018-11-23 19:24:00
Q2 旋轉立即數
作者: james33312 (建)   2018-11-26 02:44:00
Q1 角括號是optional 沒加就不會判斷conditiongoogle : arm condition flagQ5. google AAPCSr0=stateQ6 以C來說str是類似*r0=r1,但你的描述是*r0=*r1

Links booklink

Contact Us: admin [ a t ] ucptt.com