This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CMPT 250 Midterm 2 March 15, 2002 You have 50 minutes to complete this exam. Answer all questions in an answer booklet. Hand in your question sheet with your booklet. There is a total of 40 points on this exam; points for each question are indicated. Read through the entire exam before you begin. There are 5 pages ( not counting this page); make sure you have them all. No books, calculators or any other aids are allowed. Where appropriate, clarity and simplicity of your solutions count, as well as correctness. All Figures are at the back of the exam. Surname: Given Name(s): Student Number: Student number: CMPT 250 Midterm 2, Mar. 15, 2002 1. [10 points] For each assembly instruction below, convert it to a register transfer statement (eg. R 1 R 2 is a register transfer statement). A table of the addressing modes used can be found in Figure 1. Where an accumulator is used, it should be called ACC . (a) LD R1, 800 (b) ADD (400) (c) ADD R1, #400 (d) LD  (e) LD 300 (R2) (a) LD R1, #800 (b) ADD $400 (c) ADD R2, 400 (d) LD (R1) (e) LD 600 (R1) 2. [10 points] Have a look at the datapath in Figure 2. This datapath will use the function unit inHave a look at the datapath in Figure 2....
View Full Document
- Spring '97