<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          ARM寄存器詳解

          作者: 時間:2016-11-20 來源:網(wǎng)絡(luò) 收藏
          一共有37個寄存器

          1. 31個通用寄存器

          本文引用地址:http://www.ex-cimer.com/article/201611/318751.htm

          2. 6個狀態(tài)寄存器

          R13作為堆棧指針

          R14鏈接寄存器

          1.保存函數(shù)返回地址

          2. 異常返回地址

          R15程序計數(shù)器(PC指針)

          程序狀態(tài)寄存器

          只有在異常時才有程序狀態(tài)寄存器

          為什么有兩個CPSR

          SPSR當(dāng)異常發(fā)生時保存CPSR的地址

          當(dāng)異常結(jié)束時SPSR將之前保存的地址給CPSR

          程序狀態(tài)寄存器的數(shù)據(jù)格式

          NIs set to bit 31 of the result of the instruction. If this result is regarded as a twos complement
          signed integer, then N = 1 if the result is negative and N = 0 if it is positive or zero.

          ZIs set to 1 if the result of the instruction is zero (this often indicates anequalresult from a
          comparison), and to 0 otherwise.

          I bit Disables IRQ interrupts when it is set.

          F bitDisables FIQ interrupts when it is set.

          M 標(biāo)識處理器的工作模式

          獲取和設(shè)置工作模式



          關(guān)鍵詞: ARM寄存

          評論


          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();