Word Reversion Program

Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2008
Posts: 1
Reputation: Daveza is an unknown quantity at this point 
Solved Threads: 0
Daveza Daveza is offline Offline
Newbie Poster

Word Reversion Program

 
0
  #1
Sep 19th, 2008
Any Can Help Me to Create The Program To Reverse word in the sentence in Assembly Form

Example
if you input this is a book
output is book a is this
one word has maximum 10 characters and maximum character in one sentence is 100 characters

please help me quickly as you can i need it before sunday

Thanks you Before
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 199
Reputation: Tight_Coder_Ex is an unknown quantity at this point 
Solved Threads: 14
Tight_Coder_Ex's Avatar
Tight_Coder_Ex Tight_Coder_Ex is offline Offline
Junior Poster

Re: Word Reversion Program

 
0
  #2
Sep 20th, 2008
Originally Posted by Daveza View Post
please help me quickly as you can i need it before sunday

Thanks you Before
Oh, Oh, panic homework assignment.

I don't understand what relevance word and sentence limits have in so much as the reversal algorithm and can there be more than one sentence in the string.

AND... are you using an Intel processor.

If so, establish a pointers to the first and last characters of string and use a register to temporarily move each character.
  1. mov al, [esi]
  2. xchg [edi], al
  3. mov [esi], al
  4. inc esi
  5. dec edi

Test for completion by:

If input length is even test if EDI < ESI finished; otherwise EDI = ESI.

AND NO! Because you haven't shared any of your code this is a much as I'll share with you.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC