Arm compilation – (2) ARM program status Register

Source: Internet
Author: User

By:ailson Jack.

date:2016.04.14

Personal blog: www.only2fire.com

This article in my blog address is: http://www.only2fire.com/archives/896.html, typesetting better, easy to learn.

ARM's program status register CPSR reflects the status of the current processor, which contains:

1), 4 condition Code flags (negative (N), 0 (Z), Carry (C), and Overflow (V));

2), 2 interrupt stop bit, control one type of interrupt respectively;

3), a bit used to indicate the current execution instruction (arm or thumb);

4), 5 bits encoded on the current processor mode.

The register format of the CPSR is shown below:

1. Condition Code Flag

In the arm state, the majority of instructions are conditional execution, in the thumb state, only the branch instruction (B, BL, BX) is conditional execution.

For more detailed information, see my blog address: http://www.only2fire.com/archives/896.html

Note: Reproduced please indicate the source, thank you. ^_^

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.