Quiz4_SOLN - results of executing these instructions. MOV...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
HW - 4 Name: EE390 ID No: Assume that the state of 8088’s registers and memory initially are as follows: (AX)=0000H (BX)=0010H (CX)=0105H (DX)=1111H (SI)=0100H (DI)=0200H (CF)=0 (DS:100H)=EFH (DS:101H)=B2H (DS:102H)=44H (DS:103H)=BAH (DS:104H)=CAH (DS:105H)=DAH (DS:200H)=AAH (DS:201H)=DAH (DS:202H)=ABH (DS:203H)=CEH (DS:204H)=D9H (DS:205H)=E5H Write an efficient sequence of instructions to add content of memory locations DS:100H through Ds:105HW to memory locations starting at DS:200H and show the
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: results of executing these instructions. MOV SI, 100H MOV DI, 200H MOV AX, [SI] ADD [DI], AX ADD SI, 2 ADD DI, 2 MOV AX, [SI] ADD [DI], AX ADD SI, 2 ADD DI, 2 MOV AX, [SI] ADD [DI], AX OR BETTER SOLUTION MOV SI, 100H MOV DI, 200H MOV CX, 3 ADDTN: MOV AX, [SI] ADD [DI], AX ADD SI, 2 ADD DI, 2 DEC CX JNZ ADDTN...
View Full Document

Ask a homework question - tutors are online