HW_05

HW_05 - Homework #5 Page 1/2 4. (3 points) What is the...

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

View Full Document Right Arrow Icon
CS/ECEn 124, W2012 Homework #5 MSP430 ISA (Ch 5) MSP430 Micro-architecture (Ch 6) Name Section Score / 42 Questions: Answers: 1. (13 points) Disassemble the following 25 memory words: (Hint: There are 13 instructions. Make up your own labels. Use hexadecimal notation for constants and absolute locations.) 0x809c: 8392 0x809e: 0200 0x80a0: 2005 0x80a2: 40B2 0x80a4: 03E8 0x80a6: 0200 0x80a8: E3E2 0x80aa: 0021 0x80ac: 9382 0x80ae: 0202 0x80b0: 240D 0x80b2: D3D2 0x80b4: 0021 0x80b6: E0F2 0x80b8: 0010 0x80ba: 001D 0x80bc: 8392 0x80be: 0202 0x80c0: 2005 0x80c2: C3D2 0x80c4: 0021 0x80c6: C0B1 0x80c8: 0010 0x80ca: 0000 0x80cc: 1300 2. (6 points) If the value in R4 is 0x0008, what will the value be in R5 after executing the following 5 lines of binary code? What does the binary program do? 0100 0100 0000 0101 0101 0101 0000 0101 0101 0101 0000 0101 0101 0100 0000 0101 0101 0101 0000 0101 3. (3 points) When does addition generate an OVERFLOW condition as defined by 2’s complement addition? BYU, ECEn/CS 124, W2012
Background image of page 1

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

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

Unformatted text preview: Homework #5 Page 1/2 4. (3 points) What is the difference between PC-relative and register-indexed addressing modes? How are they the same? How do they differ? 5. (3 points) Since the MSP430 ISA uses only 1 bit for selecting the destination address mode, how are four destination addressing modes defined? 6. (3 points) The MSP430 ISA could define the following instruction as either a 1 word or 2 word instruction. Explain. mov.w #1,R4 7. (3 points) What does the MSP430 do with the following operand? @R2+ 8. (3 points) Why are output ports on the MSP430 readable? What advantage does this have? 9. (2 points) Which MSP430 I/O ports have interrupt capability? 10. (3 points) Some computer ISAs define special instructions for I/O. The MSP430 does not. How then does the MSP430 communicate with I/O devices? What advantage does this have? BYU, ECEn/CS 124, W2012 Homework #5 Page 2/2...
View Full Document

This document was uploaded on 03/20/2012.

Page1 / 2

HW_05 - Homework #5 Page 1/2 4. (3 points) What is the...

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