ARM Basics: The MSR for ARM instruction

Source: Internet
Author: User

/************************************************************************************************************** ****
Original address: http://www.cnblogs.com/faraway/archive/2009/03/06/1404449.html
Description: Error a1450w Deprecated form of PSR field specifier used (use _cxsf for future compatibility).

*************************************************************************************************************** ***/

ADS2.2 appear above i mistake, I google out the result, special note.

I have added the "MSR" practice to an assembler program in arm instruction practice, imitating "MRS": The code is as follows:

; MSR Instruction (Transfer the contents of the universal register to CPSR or SPSR?
) MSR cpsr,r0; transfer contents of CPSR to R0
msr spsr,r0; transfer SPSR content to R1
msr cpsr_c,r0;

I do not understand where the error occurred, I found this in the online search for this error (original here):

; MSR Instruction (Transfer the contents of the universal register to CPSR or SPSR?
) MSR cpsr_cxsf,r0; transfer contents of CPSR to R0
msr spsr_cxsf,r0; transfer SPSR content to R1
msr cpsr_c,r0;

can be solved, but I was thinking that I was in accordance with the teacher courseware, how can be wrong, read the "arm instruction set" after I understand, with the MSR instructions for the operation of PSR, in order to set the scope of the operation, to avoid the operation of some bits and affect other parts of the definition of these flags. This is not negotiable, must do so, otherwise it will be an error. The arm instruction set is about using Cpsr_all. I decided to look for the exact answer for a deeper impression.

Found on the Internet also this statement (original here), said is Cpsr_all is also the old writing, now to write such, there will be a warning. The latest wording is such a cpsr_cxsf.

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.