A Quick Start Guide For The MARIE Machine Simulator Environment
A Quick Start Guide For The MARIE Machine Simulator Environment
MarieSim is a rich graphical machine simulation environment. Its features are best
appreciated after you have experimented with a simple program or two. This guide
presents the basic steps required to enter, assemble, and execute a program.
It is not necessary to unpack or unJAR the MARIE machine simulator and its
accompanying datapath simulator in order to run them. All that you need to do is copy,
or drag and drop, the respective JAR (Java archive) files to any convenient location on
your system, and double click on the icon to invoke the simulator.
You may also execute the simulator from the Jar file directly using the command:
For example, if you have uncompressed the MarieSim1.class file in a directory named
C:\marie, you must change your classpath to C:\marie. Within a Windows
environment, you do this by using the SET command (set CLASSPATH=C:\marie). In a
Linux/Unix environment, the .cshrc file contains the classpath. (Check with your
system support staff if you are unsure as to how to change this file.) The MARIE
simulator environment is invoked using the command:
java MarieSim1
within the directory that contains the MarieSim1.class file. (Note: This command is case
sensitive!) Note: On some machines, you may have to also compile the source before the
simulator will run properly. You do this through the command:
javac MarieSim1.java