Spring 2001 CSCI 255 Homework 5

You must show your work to receive full credit. This assignment is due Wednesday, 28 February.

Giving credit where credit is due

This assignment is largely based on lab 1 for NCSU's ECE 206 course.

Problem 1 and only

A LC-2 program, expressed in binary, appears below:


0010001100000000
0010010000001110
0000010000001100
0001001001100000
0000100000001000
0001001001000001
0001010010111111
0100000000000010
0001001001000001
0001001001100001
0001010010111111
0100000000000010
0011001100000001
1111000000100101
0000000000001000

Your assignment is to "decode" the instructions of this program into LC-2 instructions and to give some reasonable guess about the purpose of the program.

Assume that the program is loaded into memory at location x3000 and that a word of "input" data for the program is stored at location x3100. This input data is loaded from location x3100 on the first instruction of the program.