ee357_hw4_sol

ee357_hw4_sol - 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 ’09· Redekopp Name: ___________________________________________ Lec: 9:30 / 11:00 Due: 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 preceding ‘0x’). For 3) enter a short description and it will be graded manually. 1) 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) Show the contents of the stack at its fullest. 3) 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 070A EXIT: RTS D0 D1 SP PC I) 0xffffffff 0x00000010 0x20003578 0x20000700 II) 0x00000000 0x00000008 0x20003574 0x20000700 III)
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_sol - 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