进出异常
来源:互联网 发布:淘宝刷手会受到处罚吗 编辑:程序博客网 时间:2024/04/28 05:11
<!-- /* Font Definitions */ @font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;}@font-face{font-family:"/@宋体";panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-parent:"";margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;mso-pagination:none;font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Times New Roman";mso-fareast-font-family:宋体;mso-font-kerning:1.0pt;} /* Page Definitions */ @page{mso-page-border-surround-header:no;mso-page-border-surround-footer:no;}@page Section1{size:612.0pt 792.0pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;mso-header-margin:36.0pt;mso-footer-margin:36.0pt;mso-paper-source:0;}div.Section1{page:Section1;}-->
进入异常
当异常出现时,异常模式分组的R14、SPSR用于保存状态。
ARM7TDMI(自动)处理异常的步骤:
R14_<exception_mode > = return link ;保护返回地址
SPSR_<exception_mode > = CPSR ;保护状态标志
CPSR[4:0]= exception_mode number ;模式切换
CPSR[5] =0 ;ARM状态
If <exception_mode > == Reset or FIQ then
CPSR[6] =1 ;禁止快中断
/* 否则CPSR[6] 不变*/
CPSR[7] =1 ;禁止正常中断
PC =exception vector address ;异常向量地址到PC
<!-- /* Font Definitions */ @font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;}@font-face{font-family:"/@宋体";panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-parent:"";margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;mso-pagination:none;font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Times New Roman";mso-fareast-font-family:宋体;mso-font-kerning:1.0pt;} /* Page Definitions */ @page{mso-page-border-surround-header:no;mso-page-border-surround-footer:no;}@page Section1{size:612.0pt 792.0pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;mso-header-margin:36.0pt;mso-footer-margin:36.0pt;mso-paper-source:0;}div.Section1{page:Section1;}-->
退出异常
R14_<exception_mode >→PC
SPSR_<exception_mode >→CPSR
在恢复CPSR时,T、F、I自动恢复为异常发生前的值。
例:各种异常返回指令操作:
①、复位:在禁止中断的模式下,从地址0x00000000/0xffff0000开始执行程序。
②、数据中止:SUBS PC,R14,#4
③、FIQ:SUBS PC,R14,#4
④、IRQ:SUBS PC,R14,#4
⑤、预取中止:SUBS PC,R14,#4
⑥、未定义指令:MOVS PC,R14
⑦、SWI:MOVS PC,R14
- 进出异常
- 进出登记
- 进出栈
- 进出栈
- 进出队列
- 进出纯DOS模式
- activity进出动画
- openfire查看进出包
- 进出风口了
- 埃及进出品规定
- 火车进出铁轨问题
- 进出股市感受
- Android Activity进出动画
- 鼠标进出效果
- 队列进出原则
- 简单进出栈程序
- PopupWindow进出动画
- 进出的动画
- 显示驱动相关 -- DrvEscape和ExtEscape
- ultraListView选中指定的一行
- 奇遇blog搬家啦~
- WAP文本分页显示
- 在IE6 下父层DIV宽度受子层DIV宽度影响
- 进出异常
- 页面无法实时加载图片
- 停用及启用磁盘设备、修改盘符代码
- 【实例化调用】将汉字转化为拼音的类
- 从网上档的关于在SAP中调用MEDIA PLAYER的代码,自己添加完整
- 好代码,坏代码
- 一些经典的SQL语句
- error LNK2005:*** already defined in ***
- 状态机编程