943,844 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 783
  • Assembly RSS
Sep 19th, 2008
0

Word Reversion Program

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Daveza is offline Offline
1 posts
since Sep 2008
Sep 20th, 2008
0

Re: Word Reversion Program

Click to Expand / Collapse  Quote originally posted by Daveza ...
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.
Assembly Syntax (Toggle Plain Text)
  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.
Reputation Points: 47
Solved Threads: 17
Posting Whiz in Training
Tight_Coder_Ex is offline Offline
215 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: Learning how to display output in console.
Next Thread in Assembly Forum Timeline: How quickly can you code this?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC