/************************************************************************************************************** ****
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.