25.11.2014 Views

RealView ARMulator ISS User Guide - ARM Information Center

RealView ARMulator ISS User Guide - ARM Information Center

RealView ARMulator ISS User Guide - 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><strong>ARM</strong>ulator</strong> 参 考<br />

4.11.7 Hostif_PrettyPrint<br />

此 函 数 以 与 Hostif_ConsolePrint() 相 同 的 方 式 打 印 字 符<br />

检 测 以 避 免 自 动 换 行 可 使 用 此 函 数 显 示 启 动 信 息<br />

另 外 还 可 执 行 行 中 断 的<br />

<br />

void Hostif_PrettyPrint(const struct RDI_HostosInterface *hostif,<br />

struct hashblk * /*toolconf*/ config,<br />

const char *format, ...)<br />

其 中<br />

hostif<br />

是 主 机 接 口 的 句 柄<br />

config 模 型 的 toolconf 配 置 数 据 库 的 指 针 此 值 可 用 于 模 型 的 状 态 数 据 结<br />

构 中 在 BEGIN_STATE_DECL() 和 END_STATE_DECL() 宏 之 间 定 义 请 参<br />

阅 第 4-12 页 基 本 模 型 接 口<br />

format<br />

是 printf 样 式 的 格 式 化 输 出 字 符 串 的 指 针<br />

... 是 与 format 相 关 的 各 个 参 数 数 量<br />

4.11.8 Hostif_WriteC<br />

此 函 数 将 字 符 写 入 <strong><strong>ARM</strong>ulator</strong> 控 制 台<br />

<br />

void Hostif_ConsoleWriteC(const struct<br />

RDI_HostosInterface *hostif, int c)<br />

其 中<br />

hostif<br />

是 主 机 接 口 的 句 柄<br />

c 要 写 入 的 字 符 c 将 转 换 为 无 符 号 的 字 符<br />

<strong>ARM</strong> DUI 0207ASC-00 Copyright © 2002, 2003 <strong>ARM</strong> Limited 版 权 所 有 4-57

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

Saved successfully!

Ooh no, something went wrong!