| | |
Word Reversion Program
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2008
Posts: 1
Reputation:
Solved Threads: 0
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
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
•
•
•
•
please help me quickly as you can i need it before sunday
Thanks you Before
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)
mov al, [esi] xchg [edi], al mov [esi], al inc esi 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.
![]() |
Other Threads in the Assembly Forum
- Previous Thread: Learning how to display output in console.
- Next Thread: How quickly can you code this?
| Thread Tools | Search this Thread |





