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.

Instruction Details<br />

A8.6.189 STM / STMIA / STMEA<br />

Store Multiple Increment After (Store Multiple Empty Ascending) stores multiple registers to consecutive<br />

memory locations using an address from a base register. The consecutive memory locations start at this<br />

address, <strong>and</strong> the address just above the last of those locations can optionally be written back to the base<br />

register.<br />

For details of related system instructions see STM (user registers) on page B6-22.<br />

Encoding T1 <strong>ARM</strong>v4T, <strong>ARM</strong>v5T*, <strong>ARM</strong>v6*, <strong>ARM</strong>v7 (not in ThumbEE)<br />

STM !,<br />

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

1 1 0 0 0 Rn register_list<br />

n = UInt(Rn); registers = ‘00000000’:register_list; wback = TRUE;<br />

if BitCount(registers) < 1 then UNPREDICTABLE;<br />

Encoding T2 <strong>ARM</strong>v6T2, <strong>ARM</strong>v7<br />

STM.W {!},<br />

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

1 1 1 0 1 0 0 0 1 0 W 0 Rn (0) M (0) register_list<br />

n = UInt(Rn); registers = ‘0’:M:’0’:register_list; wback = (W == ‘1’);<br />

if n == 15 || BitCount(registers) < 2 then UNPREDICTABLE;<br />

if wback && registers == ‘1’ then UNPREDICTABLE;<br />

Encoding A1 <strong>ARM</strong>v4*, <strong>ARM</strong>v5T*, <strong>ARM</strong>v6*, <strong>ARM</strong>v7<br />

STM {!},<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

cond 1 0 0 0 1 0 W 0 Rn register_list<br />

n = UInt(Rn); registers = register_list; wback = (W == ‘1’);<br />

if n == 15 || BitCount(registers) < 1 then UNPREDICTABLE;<br />

Assembler syntax<br />

STM {!}, <br />

where:<br />

See St<strong>and</strong>ard assembler syntax fields on page A8-7.<br />

The base register. The SP can be used.<br />

! Causes the instruction to write a modified value back to . Encoded as W = 1.<br />

If ! is omitted, the instruction does not change in this way. Encoded as W = 0.<br />

A8-374 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!