{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CH2 (2) - Rick Wagoner IET645 Spring 2006 Chapter 2...

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

View Full Document Right Arrow Icon
Rick Wagoner IET645 – Spring 2006 Chapter 2 Exercises E2-3. Write assembler directives to reserve 100 bytes from $D000 to $D063 and initialize them to 0. ORG $D000 ; Define initial location for memory reservation MEM BSZ 100 ; Reserve 100 blocks of memory and initialize to 0 E2-6. Write a program to compute the sum of $DA03 and $934A and save the result at $00 and $01. ORG $C000 ; Initialize location to begin storing instructions LDD #$DA03 ; Load initial value in double accumulator D ADDA #$934A ; Add second value to double accumulator D STD $00 ; Store double accumulator D to $00 and $01 END E2-11. Find the values of accumulator A and B after the execution of the MUL instruction if they originally contain the values a. $33 and $80, respectively $33 x $80 $1980 so accumulator A = $19 and accumulator B = $80. b. $7C and &55, respectively $7C x $55 $292C so accumulator A = $29 and accumulator B = $2C E2-12. Which of the conditional branch instructions in the following list will cause the branch to be taken if the condition flags N = C = 1 and Z = V = 0. a. BCC target if C = 0 branch will not occur b. BNE target if Z = 0 branch will occur
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
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