Documente Academic
Documente Profesional
Documente Cultură
X
July 2013
INSTALLATION INSTRUCTIONS
3. On a Linux computer or for those who prefer to use the command line,
(a) open a command or terminal window and navigate to
the "CPUSim3.9.X" folder.
(b) Type in one of the following commands (all on one line):
(Windows users)
java -cp CPUSim3.9.jar;jhall.jar;CPUSimHelp3.9.jar cpusim.Main
(Mac or Linux users)
java -cp CPUSim3.9.jar:jhall.jar:CPUSimHelp3.9.jar cpusim.Main
(c) You can also add four optional arguments to the
command line in any order:
-m <machine file name>
-t <text (assembly program) file name>
-l <language>
-c
CPU Sim will load the machine indicated by the -m flag and the
text file indicated by the -t flag and will display menus and dialogs
using the language specified by the -l flag. You can specify either
"-l Chinese" or "-l English". If no language is specified, English is
used.
For example, to start up the Wombat1 machine and load the
W1-0.a assembly language program that appear in the
SampleAssignments folder, you could type in the following
command (all on one line) on Windows:
java -cp CPUSim3.9.jar;jhall.jar;CPUSimHelp3.9.jar cpusim.Main
-m SampleAssignments/Wombat1.cpu -t SampleAssignments/W1-0.a
(This command is, in fact, the command in the "CPUSim.bat" file.)
If the user does not specify a machine file, a new empty
machine is opened.
The -c flag indicates that the Java Swing GUI should not be used
and instead CPU Sim should run in command line mode.
Note that if you use the -c flag, you must also
use the -m and -t flags. In that case, CPU Sim will load the
machine indicated by the -m flag and the text file indicated by
the -t flag and run them without a GUI. Instead, all user input
and output is done via the command line.
TUTORIAL
CONTACT INFO