如果有人可以帮助我,我有PCSpim模拟器在我的Windows7PC上,我想加载一个文件并从命令提示符运行它,是否也可以打印PCSpim窗口-输出显示在-in的控制台执行后?提前谢谢。
发布于 2013-05-15 10:46:44
这是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.txthttps://stackoverflow.com/questions/16550010
复制相似问题