Computing
Computing in this class can be done four ways:
- Students can use the Computer Science Lab (CSL) XP workstations (e.g. rooms 1358, 1366, or 1368 CSS).
- Students in the College of Engineering may use the computers at CAE. While this may be convenient, we cannot guarantee support.
- Students may use their own Windows computers. While this may be convenient, we cannot guarantee support.
- Students may use their own MacOS/Linix computers. While this may be convenient, we cannot guarantee support.
Logic.ly
Here is a flash-based gate simulator perfect
for playing with and visualizing simple logic gates:
Logic.ly (Use "Try Online" under the big "BUY NOW" button).
LC-3 Information
PennSim
The PennSim LC-3 Simulator can be run on any computer with Java 1.5 installed. Please see the PennSim Guide below for more information.
File Types
You will encounter at least three filetypes when using PennSim:
- Scripts
These files use suffix .TXT. Example here. Using the PennSim command "script foo.txt" will have the same effect as if your typed all of foo.txt's contents into PennSim's command line.
- LC-3 Assembly Code (Chapter 7 and later)
These files also use suffix .TXT/.ASM (.TXT recommended). Example here.
Using the PennSim command "as foo.txt" will assemble the instructions and create files foo.obj and foo.sym.
- Object Files
Files with suffix .OBJ are the "machine" code that can be loaded and executed by PennSim. It contains sequences of 16-bit binary values that correspond to LC-3 instructions. These files are unreadable in a text editor and will be created for you by PennSim's assembler function.
Creating .TXT/.ASM Files
You may use any basic file editor that you would like to create .txt/.asm files. This is easiest for .txt files:
- Windows: Notepad, Notepad++, LC-3 Edit (see below)
- Mac: TextEdit, TextWrangler
- Linux: gedit
- Any: vi, emacs
Not recommended: If you use the old version of PennSim (1.2.5), you must use the filename extension .asm for assembly language files, but makes text editing harder. We recommend .txt with the new version of PennSim (1.4.1).
Learn@UW Dropbox
To submit a file in Learn@UW, follow these instructions:
- Save your file a plain text document (.txt file extension).
- After selecting the course (compsci 252 - 001 or 002), click on the Dropbox tab at the top.
- Click on the folder that you want to submit your file in. For example, if you want to submit a file for question #7 of homework #6, click on hw6_7.
- Click on "Add a File". Browse through the folders in your computer and select the file to be added. The click on upload.
- Finally, click on the submit button.
Remember that exactly one student from each team has to submit all the files
for your team.
Screenshot
Taking a screenshot in Windows XP is easy:
- Make sure your simulator window is in focus.
- Hit the ALT key and the PrintScreen key together at the same time.
- Start the program "Paint" (comes with Windows under Start -> All Programs -> Accessories). You can alternatively use "Word" if you prefer.
- Paste (i.e. hit the CTRL key and the V key together at the same time).
- Print (i.e. hit the CTRL key and the P key together at the same time).
|