Исключение файла сборки с помощью PCSpim из cmd

Если кто-нибудь может мне помочь, пожалуйста, у меня есть симулятор PCSpim на моем компьютере с Windows 7, и я хочу загрузить файл и запустить его из командной строки. Можно ли также распечатать в окне cmd вывод, показанный в консоли PCSpim после выполнения? Заранее спасибо.

1 ответ

Это из файла 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
Другие вопросы по тегам