COMP SCI 252 Midterm: CS 252 UW Madison Fall2014 Exam3C sol

23 views9 pages
31 Jan 2019
Professor

Document Summary

No: book(s), note(s), or calculators of any sort. Plan your time carefully since some problems are longer than others. Use the blank sides of the exam for scratch work. The lc-3 instruction set is provided on page 9. Problem 2 (2 points: (1 point) write a single lc-3 instruction to load the number 0x4025 into r2. Assume that your instruction will be located at 0x4000. 1110 010 000100100: (1 point) write a single lc-3 instruction to load the data stored at memory address 0x4025 into r3. Assume that your instruction will be located at 0x4001. The table below shows lc-3 instructions starting at 0x3000, which are executed in sequence. Specify the values at memory locations 0x300f to 0x3012 after executing each instruction. Assume that the initial contents of r0 = 0x3010 and r1 = 0x3011. Also, assume that the initial values of the memory locations 0x300f to 0x3012 are all zeros. (3 points)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents