This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: EE306 Exam 2 Practice Problems This is not intended to be a full review of the topics we've covered since the last exam. Problem 1 What steps that would be required, in order, to accomplish each of the following instructions? To answer each question, select the steps from the diagrams provided, and list the letters corresponding to the diagrams, in the appropriate order. STR: B, A, E LEA: C, F LDI: C, A, D, G JMP: H A B C D E F G H Problem 2 The following subroutine performs integer division – that is, it performs the division of two numbers, and neglects any remainder. As an example: 12 ÷ 3 = 4 13 ÷ 3 = 4 14 ÷ 3 = 4 15 ÷ 3 = 5 However, the program contains two errors. First, mark the "Error" column next to the lines containing the errors. Then, neatly write the corrected line in the "Correction" column. R0 contains the first number, R1 contains the second number, and R2 contains the result. You may assume that R0 and R1 are always greater than zero....
View
Full
Document
This note was uploaded on 03/22/2008 for the course EE 306 taught by Professor Ambler during the Fall '07 term at University of Texas.
 Fall '07
 Ambler

Click to edit the document details