23.10.2014 Views

RealView - ARM Information Center

RealView - ARM Information Center

RealView - 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.6.2 INFO<br />

INFO 命 令 支 持 在 每 一 轮 汇 编 过 程 中 产 生 诊 断 信 息 。<br />

! 与 INFO 相 似 , 但 输 出 报 告 相 对 简 单 。<br />

语 法<br />

INFO numeric-expression, string-expression<br />

其 中 :<br />

numeric-expression<br />

string-expression<br />

用 法<br />

是 在 汇 编 时 取 值 的 一 个 数 值 表 达 式 。 如 果 该 表 达 式 的 值 等 于 零 :<br />

• 在 第 一 轮 汇 编 时 不 执 行 操 作 ;<br />

• 在 第 二 轮 汇 编 时 显 示 string-expression。<br />

如 果 该 表 达 式 的 值 不 等 于 零 , 则 显 示 string-expression 作 为 错 误 信<br />

息 , 并 且 汇 编 失 败 。<br />

是 取 值 为 一 个 字 符 串 的 表 达 式 。<br />

INFO 提 供 了 灵 活 的 方 式 来 生 成 自 定 义 错 误 信 息 。 有 关 数 值 表 达 式 和 字 符 串 表 达<br />

式 的 其 它 信 息 , 请 参 阅 第 3-20 页 的 数 字 表 达 式 和 第 3-19 页 的 字 符 串 表 达 式 。<br />

另 请 参 阅 第 7-46 页 的 ASSERT。<br />

示 例<br />

INFO 0, "Version 1.0"<br />

IF endofdata

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

Saved successfully!

Ooh no, something went wrong!