ECEN/CS 124 Page

Entries on this web page include:



Using the simulator and assembler on your home computer.


Downloading and Installing the Programs

All you have to do is to download assembler.jar and simulator.jar files to your computer (just click on the links). Put the files in any directory.

Running the Programs

Running the programs is the same for all types of computers. Start a command-line window (see instructions below), and go to the directory containing the downloaded files. To run the assembler and assemble a file called somefile.asm, type:

java -jar assembler.jar somefile

and hit the return key. To run the simulator, type:

 java -jar simulator.jar

and hit the return key. This should work on any computer that has Java installed. If the programs do not work, you probably do not have java installed properly on your computer. To see if you have java installed, just type:

 java

and hit the return key.  You should see a message that provides information on how to run java. If you see anything else, then java is not installed. I can't help you get java installed, so you will need to talk to your fellow students to get help if you need to install java (which is a free download from the web).



Starting a Command-Line Window on Windows

Start the CommandPrompt program. You can find it in Accessories when you click the Start button in the task bar at the bottom of the screen. Once you have started the CommandPrompt window, go to the directory containing assembler.jar and simulator.jar (use the cd command) and follow the instructions given above for running the simulator and assembler. If you need help using the CommandPrompt window, please ask your fellow students.

Starting a Command-Line Window on Mac OS X


In the finder, click on the Applications icon. Now, find the Utilities folder. Click on that and you will find a program called Terminal. Double-click on that and it will bring up a command-line window. Use cd to get to the directory containing the assembler.jar and simulator.jar files and follow the instructions given above for running the simulator and assembler.



Here are many of the C source-code files that I used in class lectures (organized by topic).


Here are the program listings for the three files used to test the LC-2 Simulator.


Palindrome.txt, logicoperations.txt, decToHex.txt.