Current Program Status Register exception modes

不想你离开。 提交于 2019-11-30 18:57:57

问题


I'm working with code that has the following four assembly instructions:

CPSR_cxsf
SPSR_cxsf

CPSR_c
SPSR_c

I've been having a hard time trying to figure out what the difference between these exception modes is. Can anyone advice?


回答1:


c, x, s and f refers to the different parts of the status registers:

c = Control
x = eXtension
s = Status
f = Flags

The purpose of using e.g. CPSR_c is that it allows you to update only parts of the status register (in this case the control bits) without affecting the other parts.



来源:https://stackoverflow.com/questions/15641149/current-program-status-register-exception-modes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!