{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Test1soln-3750

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

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

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.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern