E E 319K Midterm: EE319K Exam1Practice3Sol
Document Summary
Your signature is your promise that you have not cheated and will not cheat on this exam, nor will you help others to cheat on this exam: No calculators or any electronic devices (turn cell phones off). Please be sure that your answers to all questions (and all supporting work that is required) are contained in the space (boxes) provided. Anything outside the boxes will be ignored in grading. For all questions, unless otherwise stated, find the most efficient (time, resources) solution. Interface a switch to (input) port pa7 of the lm3s1968 using negative logic. Problem 3 (15 points): arithmetic and addressing (a) (5 points) for the following operation sequence, what will be the value of register r0 and condition code bits n, z, v and c after execution of the sequence. Assume all values and registers are 8-bit wide: 1 (b) (5 points) consider the following operation sequence (in regular 32-bit arm assembly):