Welcome to the Most Reliable Essay writing Service Online

ASSEMBLY LANGUAGE PROGRAMMING

by | Mar 26

 

Write the program for the 8th exercise ( copy string backwards) on page 138 of your book:

8. Copy a String Backwards

Write a program using the LOOP instruction with indirect addressing that copies a string from

source to target, reversing the character order in the process. Use the following variables:

source BYTE “This is the source string”,0

target BYTE SIZEOF source DUP(‘#’)

Insert the following statements immediately after the loop to display the hexadecimal contents

of the target string:

mov esi,OFFSET target ; offset of variable

mov ebx,1 ; byte format

mov ecx,SIZEOF target ; counter

call DumpMem

If your program works correctly, it will display the following sequence of hexadecimal bytes:

67 6E 69 72 74 73 20 65 63 72 75 6F 73 20 65 68

74 20 73 69 20 73 69 68 54

(The DumpMem procedure is explained in Section 5.3.2.) (A VideoNote for this exercise is posted

on the Web site.)

  Also count the number of words in the string. You must display the reversed string and the number of words. To display a string and a number, you can use the The Irvine library functions as explained in the chapter 5 section 4. 

Hint: You can look for Ascii value 32 which represents the space in the string. 

  

CLIENT TESTIMONIALS

The Service Is Okay. I won’t Complain

The writers on the website are courteous and the customer service responds quickly. My paper was handled well; They promised...

Writers here are very professional and are native British

Thanks a lot for helping me out with my PhD Thesis, Writers here are very professional and are native British!!

Jack, The United Kingdom

Very Very Helpful, and On time.

Very Very Helpful, and On time.

Adelio M, Spain

I scored complete A’s in 3 out of four courses

I scored complete A’s in 3 out of four courses

Anonymous, Illinoi Chicago

CLICK HERE  To order your paper

About Essaysmiths Assignment writing service

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for upto 20% off in their first Order. Our payment method is safe and secure.

 CLICK HERE to Order Your Assignment

 

Order your Assignment today and save 15% with the discount code ESSAYHELP

X