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.

ディレクティブリファレンス<br />

7.4.5 WHILE、 WEND<br />

WHILE ディレクティブは、 繰 り 返 しアセンブルされる 命 令 やディレクティブの<br />

シーケン ス を 開 始 し ます。 このシーケンスは WEND ディレクティブで 終 了 しま<br />

す。<br />

構 文<br />

WHILE logical-expression<br />

code<br />

WEND<br />

各 項 目 には 以 下 の 意 味 があ り ます。<br />

logical-expression<br />

{TRUE} または {FALSE} を 求 める 式 を 指 定 します (「 論 理 式 」 (ペー<br />

ジ 3-39) を 参 照 )。<br />

使 用 法<br />

命 令 のシーケン ス を 複 数 回 アセンブルするには、 WHILE ディレクティブを WEND<br />

デ ィ レ ク テ ィ ブ と 組 み 合 わせて 使 用 し ます。 反 復 回 数 はゼ ロ にする こ と も で<br />

きます。<br />

IF...ENDIF 条 件 は WHILE...WEND ループ 内 で 使 用 でき ます。<br />

WHILE...WEND ループはネス ト でき ます (「ネステ ィ ングデ ィ レ ク テ ィ ブ」 (ペー<br />

ジ 7-36) を 参 照 )。<br />

例<br />

count SETA 1 ; you are not restricted to<br />

WHILE count

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

Saved successfully!

Ooh no, something went wrong!