EE357-Nazarian-SampleMidterm_Sol-Fall09

EE357-Nazarian-SampleMidterm_Sol-Fall09 - EE 357 Sample...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 EE 357 Sample Questions Nazarian Fall 09 Name: ___________________________________________ Lecture 11:00 Closed Book / 90 minutes Perfect Score: 100 / 103 Score: _______ Note: ADDQ and SUBQ are instructions that are functionally equivalent to ADDI & SUBI 1. Short Answer (12 pts.) a. Use of EVT to get to start of TRAP handler Push of SR in addition to return address Switch into supervisor mode b. ( Frame Pointer ) ( Local Variables ) c. -12 d. -3.25 e. Overflow occurs in both cases f. ( Return address ) ( the stack ) g. PC and SR
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Assembler Directives and Addressing Modes (30 pts.) 2. 0x20003004 00 04 8E AF 0x20003008 12 34 FF FF 0x2000300c FF FF FF FE 0x20003010 FF FF 34 33 0x20003014 32 31 00 FF 0x20003018 20 00 30 0c 0x2000301c 0x20003020 DAT = 0x20003004 BUF = 0x20003010 STR = 0x20003012 PTRS = 0x20003018 .text A0 D0 D1 MOVEA.L PTRS,A0 0x2000300c MOVE.W -(A0),D0 0x2000300a 0x0000ffff MOVE.W -(A0),D1 0x20003008 0x00001234 ADD.L D1,D0 0x00011233 MOVEA.L #DAT,A0 0x20003004
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

EE357-Nazarian-SampleMidterm_Sol-Fall09 - EE 357 Sample...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online