0

如果有人可以帮助我,我的 Windows 7 PC 上有 PCSpim 模拟器,我想加载一个文件并从命令提示符运行它,是否也可以打印 -in cmd window - 执行后 PCSpim 控制台中显示的输出?提前致谢。

4

1 回答 1

0

这是来自 HLP 文件。

PCSpim supports a rich command line argument format.  You can control core simulator settings, and specify a file to be loaded automatically.  The command line options available are:

-bare/-asm
-trap/-notrap
-trap_file <file>
-delayed-loads
-delayed-branches
-quiet/-noquiet
-mapped_io/nomapped_io
-file <file> <args>

Note that the -file <file> argument, if specified, must come last.  Anything after the -file <file> option will be considered run-time arguments, and will be saved for the first time the program is executed.

所以 -file 命令是加载文件所需要的。

像这样的东西可能会创建一个 file.txt ,结果如下:

pcspim -file myfile.ext >file.txt
于 2013-05-15T02:46:44.280 回答