ccp - d CLD The MOVSB instruction uses which register as...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 d. CLD The MOVSB instruction uses which register as the source operand? a. ESI b. EDI c. EAX d. ECX Example 1 .data var1 BYTE 10 var2 BYTE 20 var3 BYTE 30 .code mov esi,OFFSET var2 mov edi,OFFSET var1 cmpsb ja L1 jb L2 je L3 To which label will the program jump in Example 1? a. L1 b. L2 c. L3 d. cannot be determined from the information given
Background image of page 1

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

View Full DocumentRight Arrow Icon
Page 2 If var1 and var2 were changed to type SWORD in Example 1, what change(s) would have to be made to the instructions in th e a. change CMPSB to CMPSW b. change CMPSB to CMPSD c. change JA to JG, and change JB to JL d. none of the above Example 2 1: .data 2: str1 BYTE "1324A2342424",0 3: .code 4: mov edi,OFFSET str1 5: mov al,'A' 6: cld 7: repne scasb 8: mov bl,[edi] In Example 2, assume that str1 is located at offset 00040010h. What will be the value of EDI after line 7 executes? a. 00040010h b. 00040013h c. 00040014h d. 00040015h In Example 2, if we change line 6 to "std", what value will be moved to BL after line 8 executes? a. ASCII code of "4"
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/27/2010 for the course CSCI 112 taught by Professor Dfg during the Spring '10 term at Community College of Denver.

Page1 / 5

ccp - d CLD The MOVSB instruction uses which register as...

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

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