{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Test1soln-3750

Test1soln-3750 - EE 3750 Test 1 solutions 1 EE 3750 Test 1...

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

View Full Document Right Arrow Icon
EE 3750 — Test 1 solutions 1 EE 3750 — Test 1 solutions Spring 2006 1. (15 pts) For each instruction below, specify the contents of all registers changed by the instruction, when the instructions are executed in sequence. In addition, give the sum and the flag settings for CF, PF, AF, ZF, SF, and OF after the instruction ADD AL, DL . Let AX = 2407, BX = 2ED3, CX = 70FF, DX = 1A05, SI = 366, DI = 7E4, SP = 24, DS = 1234, SS = 5500, and DF (direction flag) = 0, where all values are in hexadecimal. Answers shown in hexadecimal. ADD AL, DL : AL 0C CF = 0, PF = 1, AF = 0, ZF = 0, SF = 0, OF = 0 DAA : AL 12 MOVSW : DI 7E6, SI 368 STOSB : DI 7E7 PUSH CX : SP 22 TEST CX, 100B : no register changed POP BX : SP 24, BX 70FF 2. (25 pts) Write an 8086 instruction sequence to copy every even numbered element of array green to array orange , where green and orange are byte variables and green contains 240 elements. (That is, copy green 0 to orange 0 , copy green 2 to orange 1 , copy green 4 to orange 2 , etc.
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