{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hwset8(2) - Carnegie Mellon University Department of...

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

View Full Document Right Arrow Icon
Carnegie Mellon University Department of Electrical and Computer Engineering 18-100 Fall 2009 Introduction to Electrical and Computer Engineering Homework 8 - Due Tuesday, November 10, 2009 For this homework, you can just print it out and fill in your answers on the assignment. Please staple all of your pages together! Note: For any code that you need to write, use the code examples from Lab 9 and from the lecture slides to help you structure your programs and to find commonly used instructions. Name: _________________________________________ Section: __________ 1
Background image of page 1

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

View Full Document Right Arrow Icon
1. You're writing a program in which you need to subtract 8 from several numbers. After looking at the documentation, you see that the ATmega8 has a subi instruction you can use to accomplish this. However, upon further investigation you discover that the ATmega8 you bought on eBay has a few broken instructions! It seems that neither sub nor subi work. You quickly realize that this is not a problem, because you can use your computer engineering ingenuity to
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.

{[ snackBarMessage ]}