ECE199JL Final Exam, Fall 2012
Tuesday 18 December
Name and UIUC Net ID:
Be sure that your exam booklet has 13 pages.
Write your name at the top of each page.
This is a closed book exam.
We have included a scratch sheet and two LC-3 reference pages.
MP1. Printing a Histogram
Due Date: Wed, Sept. 3, 2014 at 10:00 p.m.
In this first programming assignment, you will extend code that we develop in class to compute a histogram of letters and non-letters in a string.
Your final program will print the resul
F.1 Chapter 1 Solutions
1.1 Every computer can do the same thing as every other computer. A smaller or slower computer
will just take longer.
1.3 It is hard to increase the accuracy of analog machines.
inputs to rst (x) box
MP6 Simple Image Editor
Due on Wednesday Oct 15th 2014
Your task this week is to implement a Gaussian filter, image convolution and pixelate. Gaussian filter is a
type of image filter that uses a Gaussian function for calculatin
Here is the code for set_value for RealNumber
void RealNumber:set_value (double rval)
realComponent = rval;
For vector product,
if you have x = (ai+bj+ck), y= (di+ej+fk),
then x*y = (a*d)+(b*e)+(c*f)
Your task this week is to implement the
Your task this week is to implement the core computation subroutine for a calculator in C. A picture of which is
shown on the right below. The execute operator subroutine takes an operator and two operands and returns the result
of applying the operator t
Code must compile with the gcc compiler with the following invocation:
gcc -g -std=c99 -Wall -Werror -o output_executable -l library1 [-l library2]
. source_file1.c [source_file2.c] .
Do not omit the "-std=c99 -Wall -Werror" flags.
By the end of todays lecture, you will be able
Overview of the LC-3
All data movement instructions share a
common instruction format
C Programming Reference
Installing LC-3 tools on your machine
This page is for those interested in installing the LC-3 tools on their personal computer. This is optional; the EWS labs (when they're working
) are perfectly suitable for working on LC-3 programs. These tools are de
In this week's machine problem, we will explore numerical solutions to ordinary differential equations
(ODEs). Solving ODEs comes up in all kinds of engineering applications such as solving circuits, heat
equations, electromagnetic field equations. In thi
For this MP, you will be creating an image of a Sierpinski Carpet. See an example below:
The construction of the Sierpinski carpet begins with a square. The square is cut into 9 congruent
subsquares in a 3-by-3 grid, and the central subsquare
MP9 Audio processing
Due Wednesday November 12th, 10 pm
Your task this week is to implement 4 functions to manipulate .wav files. The four
functions are little_endian_2(), little_endian_4(), read_file(), and sloop()
little_endian_2() and little_endian_4()
Your task this weekis to builda Sudoku solver using recursioninC.Theobjectiveforthisweek
Sudoku is a comb
ECE 198 JL
January 14, 2013
Overview and orientation
Computer systems organized as a systemic set of transformations
Pre-lecture reading assignment
o Course Overview and Policies
If you encounter a message saying "Password for 'login' GNOME keyring:" while trying to access subversion, type your login
password and press Enter. If this does not resolve the issue, delete your login keyring by typing the following in the te
Learning Tools and Tutorials
A nice sandbox to play with logic gates: http:/logic.ly/demo/
Clock-by-clock LC-3 simulator: http:/sourceforge.net/projects/lc3uarch/
C Programming Tutorials and References
Programming is the process of transforming
problem statements into programs
Systematically decompose complex tasks into
simpler tasks to ease conceptualization
Example: Deeper exploration of systematic
Programming on the LC-3
Visualize the memory
Decompose your idea i
Quiz Time: How many times will this code
execute the instruction at address x3003?
Assembly Programming on the LC-3
Programming in LC-3 assembly language
ECE 198 JL
April 23, 2014
Example program written in LC-3 assembly language
LC-3 TRAP mechanism
Post-lecture reading assignment
o Textbook 8.1, 9.1
Fall 2014 ECE 198KL First Midterm
September 30 2014
This is a closed book exam except for 1 sheet of notes.
You may not use a calculator.
Absolutely no interaction between students is allowed.
Problem 1 (35 points): Word Reversal