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.

<strong>ARM</strong> 指 令 参 考<br />

4.10.5 SETEND<br />

设 置 CPSR 中 的 端 序 位 。<br />

备 注<br />

SETEND 不 能 是 有 条 件 的 。<br />

语 法<br />

SETEND specifier<br />

其 中 :<br />

specifier 是 以 下 指 令 之 一 :<br />

BE 大 端 。<br />

LE 小 端 。<br />

用 法<br />

使 用 SETEND 访 问 采 用 不 同 端 序 的 数 据 , 例 如 通 过 其 它 的 采 用 小 端 存 储 方 式 的 应<br />

用 程 序 , 来 访 问 几 个 采 用 大 端 存 储 方 式 的 DMA 格 式 化 数 据 字 段 。<br />

体 系 结 构<br />

SETEND 在 v6 及 更 高 版 本 的 体 系 结 构 中 有 效 。<br />

示 例<br />

SETEND BE<br />

; Set the CPSR E bit for big-endian accesses<br />

LDR r0, [r2, #header]<br />

LDR r1, [r2, #CRC32]<br />

SETEND le<br />

; Set the CPSR E bit for little-endian accesses for the<br />

; rest of the application<br />

<strong>ARM</strong> DUI 0204BSC © 2002、 2003 <strong>ARM</strong> Limited 版 权 所 有 。 保 留 所 有 权 利 。 4-119

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

Saved successfully!

Ooh no, something went wrong!