Jasmin Setup

Sun environment.
 

We shall need to tell Jasmin where to find its and your classes. Put the following into your .cshrc file  (please cp .cshrc  .cshrc.backup before making the changes in case you make a mistake):
    Look at  java setup to see how it all goes together.

    Test it by going to any directory and then

    What to do if you mess up:
    1. /usr/bin/cp .cshrc.backup .cshrc to copy the original file back; and/or
    2. /usr/local/bin/pico .cshrc to redit the file.
Windows environment.
Download  jasmin.zip and unzip it a directory,  say C:\jasmin.

In the directory where you will write Jasmin programs (most likely the same one as where you write your java programs), edit a file jasset.bat which will contain the command
            set CLASSPATH=.;c:\jasmin\classes;%classpath%

When you are ready to run the assembler, at the prompt, type jasset. This will set up the environment so that Jasmin can be found.

In the directory where you will write jasmin programs (most likely the same one as where you write your java programs), edit a file jasmin.bat which will contain the command
            java jasmin.Main %1 %2 %3 %4 %5 %6 %7 %8 %9

To assemble a program, such as test.j,  at the prompt, type jasmin test.j.  Note that jasmin is a Java program!