COMP SCI 252 Midterm: CS 252 UW Madison Spring2013 Exam4A SOL

27 views9 pages
31 Jan 2019
Professor

Document Summary

Prof mark d. hill and prof. gurindar sohi. Tas: rebecca lam, mona jalal, preeti agarwal, pradip vallathol. No: book(s), note(s), or calculators of any sort. Plan your time carefully since some problems are longer than others. The lc-3 instruction set is provided to you on the last page. For the following questions, select the best answer. Jsrr r5 is equivalent to: lea r5, #1. Jmp r7: all of the above are equivalent. Answer the questions below for the following program: (5 points) . end: fill out the following symbol table: (3 points) Upp_a x4004 x400a x400c x400f x4010 x4020: what is the output of this program? (2 points) Identify the assembly errors in the following assembly program. (3 points) . end (a) 21 cannot be represented in 5 bits (b) label next is undefined (c) halt cannot be used as a label. Suppose the following lc-3 subroutine implements a new service routine called gets.

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