HW_06

HW_06 - CS/ECEn 124, W2012 Homework #6 MSP430 Assembler (Ch...

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

View Full Document Right Arrow Icon
Homework #6 MSP430 Assembler (Ch 7) Stacks (Ch 8) Name Section Score / 46 Questions: Answers: 1. (18 points) What native MSP430 instruction is replaced by the assembler for each of the following emulated instruction? a. ADC.W dst b. DEC dst c. DECD dst d. INC dst e. INCD dst f. INV.B dst g. RLA.W dst h. RLC.B dst i. CLR dst j. CLRC k. POP dst l. SETZ m. TST.B dst n. BR dst o. DINT p. EINT q. NOP r. RET 2. (2 points) What MSP430 instruction could be used for a 1 word, 2 cycle NOP ? 3. (6 points) The following operations are performed on a stack: PUSH A, PUSH B, POP, PUSH C, PUSH D, POP, PUSH E, PUSH F, POP, POP, POP, PUSH F a. What does the stack contain after the last PUSH F ? b. At which point does the stack contain the most elements? c. Without removing any elements left on the stack from the previous operations, what does the stack contain after the following additional operations? PUSH G, PUSH H, PUSH I, PUSH J,
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 document was uploaded on 03/20/2012.

Page1 / 2

HW_06 - CS/ECEn 124, W2012 Homework #6 MSP430 Assembler (Ch...

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