This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 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 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...
View Full Document
This note was uploaded on 12/13/2009 for the course ECE 18100 taught by Professor Williams during the Fall '07 term at Carnegie Mellon.
- Fall '07