you are here:   TCNJ :: mic1 :: How To

mic1 simulator - a quick "How To"


jump to:  Simulator   Assembler


How to get the Mic1 simulator up and running:

  1. On a PC with XWin, open a session to your favorite UNIX box
    -or- got to a SUN box, log into the XWindows system (CDE/OpenWin)
    You can log in as yourself, the mic1 account is world readable.
  2. set your classpath like this:
    % setenv CLASSPATH ~mic1/classes.zip
  3. start the simulator:
    % java mic1sim&
  4. load the microprogram
  5. load your own Macroprogram or one of the samples

^ back to top

How to compile your own jas programs:

  1. create your source code as a text file with a .jas extension,
    take a look at the examples provided to get started
  2. you need a copy of the configuration file
    % cp ~mic1/ijvm.conf .
  3. set your classpath like above
    % setenv CLASSPATH ~mic1/classes.zip
  4. run the assembler with your sourcefile as the first argument
    % java ijvmasm yoursource.jas [youroutput.ijvm]
  5. you can now load the .ijvm file as the macroprogram into the simulator.

^ back to top