ee357_hw4 (1)

ee357_hw4 (1) - EE 357 Homework 4 Spring 09 Redekopp Name:...

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

View Full Document Right Arrow Icon
EE 357 Homework 4 Spring ’0 9 ·● Redekopp Name: ___________________________________________ Lec: 9:30 / 11:00 Due: Thurs. Feb 26 th before class Score: ________ For this HW, enter your answers on Blackboard. Be sure to follow any formatting instructions. For problems 1) and 2) and 3) consider the following assembly code. Submission Instructions : Enter all register and memory values in hexadecimal (with a precedi ng „0x‟) and remember the 0x2000 address prefix for .text and stack areas. For 3) enter a short description and it will be graded manually. 1) (30 pts.) Show the word content (in hex) of registers D0, D1, SP, and PC: i) Just after execution of the BSR instruction at location L1 ii) Just after the first execution of the BSR instruction at L2 iii) Just after the first RTS instruction execution iv) After execution of the STOP instruction 2) (12 pts.) Show the contents of the stack at its fullest. 3) (2 pts.) What arithmetic function is this code performing? .text 20000500 BEGIN: MOVE.L #-1,D0 0506 MOVE.L #16,D1 050C L1: BSR.W SUB1 0510 STOP #$2700 .org 0x200 0700 SUB1: TST.L D1 0702 BEQ.S EXIT 0704 LSR.L #1,D1 0706 ADDQ.L #1,D0 0708 L2: BSR.S SUB1
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/08/2009 for the course EE 357 taught by Professor Mayeda during the Spring '08 term at USC.

Page1 / 3

ee357_hw4 (1) - EE 357 Homework 4 Spring 09 Redekopp Name:...

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

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