新聞中心

        EEPW首頁 > 嵌入式系統 > 設計應用 > ARM寄存器詳解

        ARM寄存器詳解

        作者: 時間:2016-11-20 來源:網絡 收藏
        一共有37個寄存器

        1. 31個通用寄存器

        本文引用地址:http://www.104case.com/article/201611/318751.htm

        2. 6個狀態寄存器

        R13作為堆棧指針

        R14鏈接寄存器

        1.保存函數返回地址

        2. 異常返回地址

        R15程序計數器(PC指針)

        程序狀態寄存器

        只有在異常時才有程序狀態寄存器

        為什么有兩個CPSR

        SPSR當異常發生時保存CPSR的地址

        當異常結束時SPSR將之前保存的地址給CPSR

        程序狀態寄存器的數據格式

        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 標識處理器的工作模式

        獲取和設置工作模式



        關鍵詞: ARM寄存

        評論


        技術專區

        關閉
        主站蜘蛛池模板: 河北省| 永川市| 盐池县| 阿鲁科尔沁旗| 日照市| 清流县| 台江县| 巴彦淖尔市| 正宁县| 阜新市| 崇礼县| 榆树市| 曲周县| 读书| 大荔县| 九寨沟县| 柳州市| 江陵县| 民县| 延寿县| 五原县| 广安市| 鸡西市| 黔西县| 桦川县| 安塞县| 大安市| 正宁县| 扬州市| 绿春县| 馆陶县| 兴安县| 罗城| 涞水县| 济阳县| 柳州市| 宾阳县| 武宣县| 万盛区| 蓬溪县| 富宁县|