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.

Legacy Instruction Mnemonics<br />

C.1 Thumb instruction mnemonics<br />

Table C-1 lists the UAL equivalents of the mnemonics used in pre-UAL Thumb assembly language. Except<br />

where noted, the Thumb mnemonics conflict with UAL <strong>and</strong> cannot be supported by assemblers as<br />

synonyms. Thumb code cannot be correctly assembled by a UAL assembler unless these changes are made.<br />

All other Thumb instructions are the same in UAL as in Thumb assembler language, or can be supported as<br />

synonyms.<br />

Table C-1 Thumb instruction mnemonics<br />

Former Thumb assembler mnemonic UAL equivalent<br />

ADC ADCS<br />

ADD ADDS a<br />

AND ANDS<br />

ASR ASRS<br />

BIC BICS<br />

EOR EORS<br />

LSL LSLS<br />

MOV ,# MOVS ,#<br />

MOV , ADDS ,,#0 b<br />

MUL MULS<br />

MVN MVNS<br />

ORR ORRS<br />

ROR RORS<br />

SBC SBCS<br />

SUB SUBS c<br />

a. If either or both of the oper<strong>and</strong>s is R8-R15, ADD not ADDS.<br />

b. If either or both of the oper<strong>and</strong>s is R8-R15, MOV , not ADDS ,,#0.<br />

c. If the oper<strong>and</strong> register is SP, SUB not SUBS.<br />

AppxC-2 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!