"Assembly instruction" the PSR delivery instruction of ARM instruction set

Source: Internet
Author: User

The arm instruction set provides two instructions to directly control the status register (psr,program State Register). The Mrs Instruction is used to transmit the value of the CPSR or SPSR to a register; In contrast, the MSR transmits the contents of a register to CPSR or SPSR. These two instructions are combined to read/write to CPSR and SPSR.

Cpsr_c represents the low 8 bits in this 32-bit, which is the control bit

CPSR has 4 8-bit zones: Flag field (F), state field (S), extended domain (X), control domain (C)



The following is a general example of how the PSR command is observed:


1 "Switch to IRQ mode"

2 "Open IRQ Interrupt"

3 "Switch to user mode to perform the app"


"Assembly instruction" the PSR delivery instruction of ARM instruction set

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.