Question: Assembly Language for x86 Procesors Kip Irvine unWIng program: 6INCLUDE Irvine32.inc .data source BYTE MARTIN ; line 8 9 dest BYTE MARTINEZ str1 BYTE source
Assembly Language for x86 Procesors Kip Irvine

unWIng program: 6INCLUDE Irvine32.inc .data source BYTE "MARTIN ; line 8 9 dest BYTE "MARTINEZ" str1 BYTE "source is smaller", dh, 0ah, e 11 str2 BYTE "Source is not smaller", edh, 0ah, e 12 .code 13 main PROC 14 cld; direction forward 15 mov esi, OFFSET source 16 mov edi, OFFSET dest 17 mov ecx, LENGTHOF source 18 repe cmpsb; line 18 jb source-smaller 20 mov edx,OFFSET str2 21 imp done 22 source_smaller: 23 24 done: 2s 26 27 main ENDP 28 END main mov edx,OFFSET str1 call Writestring exit What char is EDI pointing at after line 18? What is the value of ECX after line 18? What is the console output of the program? If on line 8 the statement changes to source BYTE "MARTINEZ"; line 8 What char is EDI pointing at after line 18? What is the value of ECX after line 18? What is the console output of the following program? If on line 8 the statement changes to source BYTE "MART?NEY", line 8 What char is EDI pointing at after line 18? What is the value of ECX after line 18? What is the console output of the following program? unWIng program: 6INCLUDE Irvine32.inc .data source BYTE "MARTIN ; line 8 9 dest BYTE "MARTINEZ" str1 BYTE "source is smaller", dh, 0ah, e 11 str2 BYTE "Source is not smaller", edh, 0ah, e 12 .code 13 main PROC 14 cld; direction forward 15 mov esi, OFFSET source 16 mov edi, OFFSET dest 17 mov ecx, LENGTHOF source 18 repe cmpsb; line 18 jb source-smaller 20 mov edx,OFFSET str2 21 imp done 22 source_smaller: 23 24 done: 2s 26 27 main ENDP 28 END main mov edx,OFFSET str1 call Writestring exit What char is EDI pointing at after line 18? What is the value of ECX after line 18? What is the console output of the program? If on line 8 the statement changes to source BYTE "MARTINEZ"; line 8 What char is EDI pointing at after line 18? What is the value of ECX after line 18? What is the console output of the following program? If on line 8 the statement changes to source BYTE "MART?NEY", line 8 What char is EDI pointing at after line 18? What is the value of ECX after line 18? What is the console output of the following program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
