你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

还是一个指令的问题

[复制链接]
flintlovesam 提问时间:2015-1-6 01:04 /
CPS #16   ;为什么是进入用户模式呢   
CPSID ai, #17;为什么是进入FIQ  
这个16 17  是怎么来的  哪里有参考啊
收藏 评论4 发布时间:2015-1-6 01:04

举报

4个回答
abend 回答时间:2015-1-8 16:34:49
看图,秒懂了吧!
用了5个bit的二进制组合表示。
user 模式是10000 2的4次方,正好是 16
FIG 模式是10001 2的4次方+1 所以是17
屏幕快照 2015-01-08 下午4.29.30.jpg

屏幕快照 2015-01-08 下午4.33.09.jpg


abend 回答时间:2015-1-8 16:37:35
几种模式的讲解:
Modes of operation

In each state there are seven modes of operation:

    User (USR) mode is the usual mode for the execution of ARM or Thumb programs. It is used for executing most application programs.

    Fast interrupt (FIQ) mode is entered on taking a fast interrupt.

    Interrupt (IRQ) mode is entered on taking a normal interrupt.

    Supervisor (SVC) mode is a protected mode for the operating system and is entered on taking a Supervisor Call (SVC), formerly SWI.

    Abort (ABT) mode is entered after a data or instruction abort.

    System (SYS) mode is a privileged user mode for the operating system.

    Undefined (UND) mode is entered when an Undefined Instruction exception occurs.
flintlovesam 回答时间:2015-1-8 17:58:38
abend 发表于 2015-1-8 16:34
看图,秒懂了吧!
用了5个bit的二进制组合表示。
user 模式是10000 2的4次方,正好是 16

大神 谢谢秒懂  哈哈  加你好友吧
AndyYau-268557 回答时间:2015-1-8 21:26:59
厉害,这个也明白,科普了下,谢谢

所属标签

相似问题

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新和工艺
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版