hw6_A09

hw6_A09 - ECE2801 Homework#6 Submitted by ECE Box Date...

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

View Full Document Right Arrow Icon
ECE2801 Homework #6 Submitted by:__________________________________ ECE Box #:____________ Date:_______________________________ Question Grade 1 – 20 2 -- 10 3 -- 20 4 --20 Total:
Background image of page 1

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

View Full DocumentRight Arrow Icon
ECE2801 Homework #6 – More Assembly and Mixed Language Programming (Due Tuesday 10/13/09 At the BEGINNING of class) PLEASE (NEATLY) SHOW ALL WORK ! Comment all code well. Do not make the grader guess what you are doing! All code should be typed. To ensure proper grading and return, attach the cover sheet to the front of your homework References : Class Notes, MSP430 User's Guide Ch. 3, 7 and IAR EW Assembly Reference Guide (all available on class website) 1. (20 pts) Write code segments in MSP430 assembly that implement the indicated functionality. Comment you code well listing any assumptions made. In each part, you may assume that the variables listed have been properly declared in memory already. a) Here assume X and Y are unsigned 8-bit integers and Z is an unsigned 16 bit integer. What operation does this code perform? Z = 0; for (i=0; i < Y; i++) { Z = X+Z; } b) Assume L, M and N represent 16-bit signed integers. Place the smallest in R9. 2.
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.

This note was uploaded on 04/21/2010 for the course ECE 2801 taught by Professor Jarvis during the Fall '08 term at WPI.

Page1 / 4

hw6_A09 - ECE2801 Homework#6 Submitted by ECE Box Date...

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