如果有人可以帮助我, 我的Windows 7 PC上有PCSpim模拟器,我想加载一个文件并从命令提示符运行它, 是否也可以打印-in cmd窗口 - 执行后PCSpim控制台中显示的输出? 提前谢谢。
答案 0 :(得分: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