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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

アーキテクチャ<br />

これらの <strong>ARM</strong> 命 令 は、 <strong>ARM</strong>v6 以 降 で 使 用 で き ます。<br />

この 32 ビッ ト Thumb 命 令 は、 <strong>ARM</strong>v6T2 以 降 で 使 用 で き ます。 ただ し、<br />

<strong>ARM</strong>v7-M プロファイルでは 使 用 できません。<br />

これらの 命 令 の 16 ビッ ト Thumb バージ ョ ンはあ り ません。<br />

サンプル<br />

PKHBT r0, r3, r5 ; combine the bottom halfword of r3 with<br />

; the top halfword of r5<br />

PKHBT r0, r3, r5, LSL #16 ; combine the bottom halfword of r3 with<br />

; the bottom halfword of r5<br />

PKHTB r0, r3, r5, ASR #16 ; combine the top halfword of r3 with<br />

; the top halfword of r5<br />

また、 異 なるシフ ト 値 を 使 用 して、 第 2 オペラ ン ド を 位 取 り する こ と もでき<br />

ます。<br />

誤 用 例<br />

PKHBTEQ r4, r5, r1, ASR #8 ; ASR not permitted with PKHBT<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!