当前程序状态寄存器的异常模式 [英] Current Program Status Register exception modes

查看:169
本文介绍了当前程序状态寄存器的异常模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与code,它有以下四个汇编指令工作

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?

推荐答案

C,X,S ˚F指的是状态寄存器的不同部分:

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

C =控制结果
X =的eXtension结果
S =状态结果
F =标志

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

使用例如所述的目的 CPSR_c 的是,它可以让你在不影响其他部分更新状态寄存器(在这种情况下,控制位)只有部分。

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.

这篇关于当前程序状态寄存器的异常模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆