CS310 Resources for the LC-3 Simulator

Patt/Patel LC-3
Simulators and
User's Manuals

What's installed at the UTCS
Micro Lab?
UTCS LINUX
TURN-IN
Instructions
CS310 LC-3 Simulator
FAQ and Advice

CS310 Assembly Language Documentation Guidelines
Source Code for
figures & examples
UTCS
linux simulator
Submit advice to webmaster


This page consists of helpful links and information for using the LC-3 Simulator in CS 310 and is intended to provide "one-stop shopping" for the LC-3.

Textbook resources: LC-3 Simulator, User's Manual, Source Code



UTCS MicroLab:


Turnin
Guidelines:
NOTE!!! We will be using the turnin program available on the UTCS Linux systems and NOT the turnin.exe program available in the PCs in the microlab!

The turnin guideline and standards are as follows:


LC-3 Assembler/Simulator FAQs & other questions:

First, Probably, the simulator is waiting for you to enter a single character into the console window.  Sometimes, it is lost behind the simulator window.

On the MS Windows system, first make that window “active” by mouse-clicking anywhere in the window, and then press “ALT-Print Screen”. The dump is copied on to the clipboard. To use this in any application, just click the “paste” item in the menu bar of the edit menu in that application. You may use MS WORD or the PAINT program for this purpose.

On Unix/Linux systems, you can use the “xv” image processing program. It has a “grab” button that will let you grab the screen.



CS310 Assembly Language Documentation Guidelines:


Source Code for figures & examples:



UTCS unsupported LC-3 Simulator:
This is an optional simulator for use under Linux that you may choose to use. 
(Note:  UTCS students built their own simulator that runs on UTCS linux.... most of the CS310 team has not yet used this tool.)

LC3 for Linux:

1. Information on how to use this simulator (from the UTCS Linux systems)
http://www.cs.utexas.edu/users/aliguori/lc3db/   (also designed to provide OS support for Interrupts)

2. To assemble an LC-3 program:
/p/bin/lc3asm filename.asm - assembles filename.asm and creates filename.obj, in addition to a couple of other files.

3. To run the simulator/debugger:

/p/bin/lc3db  --ddd   (with graphical interface)
/p/bin/lc3db    (commandline interface)

4.  As for installing lc3db locally, I just copied the following message from http://www.cs.utexas.edu/users/aliguori/lc3db

"lc3db can be run locally on an Intel-based Linux machine. The only requirement is that GNU ddd is installed if you wish to use a GUI interface. GNU ddd is available from the GNU ddd website.
There is no support provided if you run lc3db locally. It's import to run the static version from the directory you have it installed in."

5.  The UTCS simulator buttons "step" and "next" are comparable to the Windows simulator buttons: "Step Into" and "Step Over".

If you have encountered a problem with a homework, then contact the professor.  Otherwise, if you have run into a confusion with the LC-3 assembler or simulator/debugger, and have resolved it, then please send the question & its answer to the webmaster  ( Pak Ho (Simon) Chung )   THANKS!
Last updated:
1/18/2006