gpt4 book ai didi

assembly - ARM指令含义

转载 作者:行者123 更新时间:2023-12-02 19:52:00 24 4
gpt4 key购买 nike

 sub     lr,lr,#4
stmfd sp!,{lr}
stmfd sp!,{r0-r14}^
mrs r1,spsr
stmfd sp!,{r1}
bl irqHandler
ldmfd sp!,{r1}
msr spsr_cxsf,r1
ldmfd sp!,{pc}^
bl irqHandler

谁能帮我解决这个“^”的意思 T_T有什么不同

stmfd   sp!,{r0-r14}^

stmfd   sp!,{r0-r14}

???

最佳答案

来自ARM manual :

^

is an optional suffix. You must not use it in User mode or Systemmode. It has two purposes: If op is LDM and reglist contains the pc(r15), in addition to the normal multiple register transfer, the SPSRis copied into the CPSR. This is for returning from exceptionhandlers. Use this only from exception modes. Otherwise, data istransferred into or out of the User mode registers instead of thecurrent mode registers.

关于assembly - ARM指令含义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12091697/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com