thw_mod1 - ECE 362 Microprocessor System Design and...

Info icon This 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 Due at the Beginning of Class (10:30 am) on Monday, February 6 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
Image of page 1

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

View Full Document Right 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. 7. [4 points] Write a single instruction that toggles both bits 2 and 3 of the B register but leaves the other bits unaffected.
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 ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern