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.

Thumb Instruction Set Encoding<br />

A6.2 16-bit Thumb instruction encoding<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Opcode<br />

Table A6-1 shows the allocation of 16-bit instruction encodings.<br />

Table A6-1 16-bit Thumb instruction encoding<br />

Opcode Instruction or instruction class Variant<br />

00xxxx Shift (immediate), add, subtract, move, <strong>and</strong> compare on page A6-7 -<br />

010000 Data-processing on page A6-8 -<br />

010001 Special data instructions <strong>and</strong> branch <strong>and</strong> exchange on page A6-9 -<br />

01001x Load from Literal Pool, see LDR (literal) on page A8-122 v4T<br />

0101xx Load/store single data item on page A6-10 -<br />

011xxx<br />

100xxx<br />

10100x Generate PC-relative address, see ADR on page A8-32 v4T<br />

10101x Generate SP-relative address, see ADD (SP plus immediate) on page A8-28 v4T<br />

1011xx Miscellaneous 16-bit instructions on page A6-11 -<br />

11000x Store multiple registers, see STM / STMIA / STMEA on page A8-374 a<br />

11001x Load multiple registers, see LDM / LDMIA / LDMFD on page A8-110 a v4T<br />

1101xx Conditional branch, <strong>and</strong> Supervisor Call on page A6-13 -<br />

11100x Unconditional Branch, see B on page A8-44 v4T<br />

a. In ThumbEE, 16-bit load/store multiple instructions are not available. This encoding is used for special<br />

ThumbEE instructions. For details see Chapter A9 ThumbEE.<br />

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

v4T

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

Saved successfully!

Ooh no, something went wrong!