1

So working with LC3, and I've been given an assignment to build a library functions to run a given driver. I've written the library at this point, but I cannot figure out how to load the library and the driver in the the Simulator memory simultaneously to run them together, in spite of perusing the McGraw book and the dreadfully-lacking-in-this-subject Google.

Anybody have the know-how on how to accomplish this?

4

1 回答 1

1

对于遇到此问题的任何其他人,通过加载多个源文件,旧内存不会被删除。这意味着您可以按顺序打开文件,并且它们都将在内存中,前提是它们的位置不重叠。

值得注意的是,IDE 仅显示最近加载文件的标签,因此请明智地选择。

如果您选择第二次加载库,则必须手动将程序计数器设置为驱动程序的开头才能成功执行它。

于 2011-03-30T00:03:16.613 回答