Test1soln-3750

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

Info iconThis 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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/25/2012 for the course EE 3750 taught by Professor Desouza during the Fall '08 term at LSU.

Page1 / 2

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

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online