08.11.2014 Views

RealView Compilation Tools アセンブラガイド - ARM Information Center

RealView Compilation Tools アセンブラガイド - ARM Information Center

RealView Compilation Tools アセンブラガイド - ARM Information Center

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.

<strong>ARM</strong> 命 令 と Thumb 命 令<br />

ダブルワー ド レジス タの 制 約 条 件<br />

Thumb-2 命 令 の 場 合 、 Rt または Rt2 に sp または pc は 指 定 でき ません。<br />

<strong>ARM</strong> 命 令 には、 以 下 の 制 約 条 件 が 適 用 さ れます。<br />

• Rt には 偶 数 番 号 のレジス タ を 指 定 する 必 要 があ り ます。<br />

• Rt に lr は 指 定 でき ません。<br />

• r12 を Rt に 使 用 し ないこ と を 強 く お 勧 めし ます。<br />

• Rt2 は R(t + 1). でなければな り ません。<br />

サンプル<br />

LDR r8,[r10] ; loads r8 from the address in r10.<br />

LDRNE r2,[r5,#960]! ; (conditionally) loads r2 from a word<br />

; 960 bytes above the address in r5, and<br />

; increments r5 by 960.<br />

STR r2,[r9,#consta-struc] ; consta-struc is an expression evaluating<br />

; to a constant in the range 0-4095.<br />

<strong>ARM</strong> DUI 0204IJ Copyright © 2002-2008 <strong>ARM</strong> Limited. All rights reserved. 4-15<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!