05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Instruction Sets<br />

A4.5 Status register access instructions<br />

The MRS <strong>and</strong> MSR instructions move the contents of the Application Program Status Register (APSR) to or<br />

from a general-purpose register.<br />

The APSR is described in The Application Program Status Register (APSR) on page A2-14.<br />

The condition flags in the APSR are normally set by executing data-processing instructions, <strong>and</strong> are<br />

normally used to control the execution of conditional instructions. However, you can set the flags explicitly<br />

using the MSR instruction, <strong>and</strong> you can read the current state of the flags explicitly using the MRS instruction.<br />

For details of the system level use of status register access instructions CPS, MRS, <strong>and</strong> MSR, see Chapter B6<br />

System Instructions.<br />

A4-18 Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DDI 0406B

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!