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:
- 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.
- set your classpath like this:
% setenv CLASSPATH ~mic1/classes.zip
- start the simulator:
% java mic1sim&
- load the microprogram
- File
- Load Microprogram
- enter ~mic1 in the folder name box (+enter)
- select "mic1ijvm.mic1" from the Files list
- load your own Macroprogram or one of the samples
- File
- Load Macroprogram
- enter ~mic1 in the folder name box (+enter)
- select a ".ijvm" file from the Files list
^ back to top
How to compile your own jas programs:
- create your source code as a text file with a .jas extension,
take a look at the examples provided to get started
- you need a copy of the configuration file
% cp ~mic1/ijvm.conf .
- set your classpath like above
% setenv CLASSPATH ~mic1/classes.zip
- run the assembler with your sourcefile as the first argument
% java ijvmasm yoursource.jas [youroutput.ijvm]
- you can now load the .ijvm file as the macroprogram into the simulator.
^ back to top