Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ASSEMBLY FOR X86 PROCESSORS In the following program: 6. Include Irvine32.inc 7. .data 8. source BYTE MARTIN ; line 8 9. dest BYTE MARTINEZ

ASSEMBLY FOR X86 PROCESSORS

In the following program:

6. Include Irvine32.inc

7. .data

8. source BYTE "MARTIN " ; line 8

9. dest BYTE "MARTINEZ"

10. dest BYTE "Source is smaller" , 0dh, 0ah, 0

11. str1 BYTE "Source is not smaller" , 0dh, 0ah, 0

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

19. jb source_smaller:

20. mov edx, OFFSET str2

21. jmp done:

22. source_smaller :

23. mov edx ,OFFSET str1

24. done:

25: call WriteString

26. exit

27. main ENDP

28. END main

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 afer line 18?

What is the console output of the following program?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

1.5 Summarize HRM issues for small businesses.

Answered: 1 week ago