import和exportMore
import: 定义表示这是一个外部变量的标号,不是在本程序定义的
export: 表示本程序里面用到的变量提供给其他模块调用的。
MOVS中S的含义More
其中S选项决定指令的操作是否影响CPSR中条件标志位的值,当没有S时指令不更新CPSR中条件标志位的值。
ARM 中很多指令在其后面加上 “S “ 都会影响 CPSR中条件标志位, 如 MVNS, ANDS, ADDS…
计算数组偏移的移位操作的指令
eg :
LSLS R1, R1, #2 ; R1=R1<<2
Reference