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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C.2 Pre-UAL pseudo-instruction NOP<br />

In pre-UAL assembler code, NOP is a pseudo-instruction, equivalent to:<br />

MOV R0,R0 in <strong>ARM</strong> code<br />

MOV R8,R8 in Thumb code.<br />

Legacy Instruction Mnemonics<br />

Assembling the NOP mnemonic as UAL will not change the functionality of the code, but will change:<br />

the instruction encoding selected<br />

the architecture variants on which the resulting binary will execute successfully, because the NOP<br />

instruction was introduced in <strong>ARM</strong>v6K <strong>and</strong> <strong>ARM</strong>v6T2.<br />

To avoid these changes, replace NOP in the assembler source code with the appropriate one of MOV R0,R0 <strong>and</strong><br />

MOV R8,R8, before assembling as UAL.<br />

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

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

Saved successfully!

Ooh no, something went wrong!