


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points of this past exam are: Make Commands, Complete, Inputs, Outputs, Registers, Invalid Inputs, Program
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Problem 1 (10 points): MP3 Warmup In order to allow for more interesting patterns in “Life” it is necessary to use a larger board. Try writing the code for a subroutine that gets one character of user input that could be either ‘0’- ‘9’ or ‘A’ - ‘V’ and returns the binary value of 0-31 as needed. Specifics
Problem 2 (10 points): Debugging For this part, you will be given a LC-3 assembly language program with a few bugs. Your task is to find the bugs by inspection and/or by debugging with the LC-3 simulator and fix them. The program only contains a few bugs (3-4) which you must fix by inserting, deleting, or modifying only a few lines of code (3-6). You may not change the input/output location/format or behavior of the program specified in the program description (in other words, you may only change what is not specified). Modification of non-buggy code and excessive modification of buggy code will be penalized. We suggest copying the code to a temporary location for experimental modification. Problem Description: This program is given an unsigned binary value at x430A, computes (value / 7) (integer division) and writes the result to x430B. Assume that the input value is less than xE000. Specifics
Specifics