thw_mod1

thw_mod1 - ECE 362 Microprocessor System Design and...

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

View Full Document Right Arrow Icon
ECE 362 Microprocessor System Design and Interfacing Spring 2012 1 Homework Set for Module 1 DueattheBeginningofClass(10:30am)onMonday,February6 1. [10 points] Interpreting the values loaded into (A) and (B) as binary fractions, determine the result produced in (A) after executing the following code sequence (express the result as a base 10 fraction). 2. [10 points] Interpreting the values loaded into (D) and (Y) as signed words , determine the result stored in product after executing the following code sequence (express the result as a base 10 number). 3. [10 points] Interpreting the values loaded into (D) and (X) as signed words , determine the values stored in quotient and remainder after executing the following code sequence (express the result as a base 10 number). Name: __________________________________________ Class No: __ __ __ __ - __ Signature: ______________________________________ Score: _______ / 200 LDAA #$73 LDAB #$FD MUL ADCA #0 LDD #$747E LDX #$FA95 IDIVS STX quotient STD remainder quotient rmb 2 remainder rmb 2 LDD #$274A LDY #$FFE5 EMULS STY product STD product+2 product rmb 4
Background image of page 1

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

View Full DocumentRight Arrow Icon
ECE 362 Microprocessor System Design and Interfacing Spring 2012 2 4. [4 points] Determine how the CC register bits will be affected (i.e., set, cleared, or unaffected) by execution of the following code sequence. 5. [4 points] Write a single instruction that sets bit 7 (the most significant bit) of memory location $900 and leaves the other bits unaffected. 6. [4 points] Write a single instruction that clears bit 0 (the least significant bit) of memory location $901 and leaves the other bits unaffected.
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 02/12/2012 for the course ECE 362 taught by Professor Staff during the Spring '08 term at Purdue.

Page1 / 11

thw_mod1 - ECE 362 Microprocessor System Design and...

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