加减乘及mov运算 在arm中,add, sub, mov都支持 sub 支持 register或者immediate的操作。而mul 只支持 寄存器的操作。
mov r0, #3mov r0, r1 CPSR寄存器
CPSR: represent the current status of the program
set on the result of instruction execution. 一共包…
接前一篇文章:ICM20948 DMP代码详解(45) 上一回讲到了inv_icm20948_setup_compass_akm函数中的以下代码片段: /* Set compass in power down through I2C SLV for compass */result = inv_icm20948_execute_write_secondary(s, COMPASS_I2C_SLV_WRITE, s->secondary_sta…