|
-
Mar 12th, 2008, 09:52 AM
#1
Thread Starter
Member
Quick Question
i am having a few problems trying to get a sting to be printed out in reverse, for example if the user types in 'Hello World' i want that to be printed out 'dlroW olleH'
-
Mar 23rd, 2008, 08:32 AM
#2
New Member
Re: Quick Question
 Originally Posted by Vb Programmer
i am having a few problems trying to get a sting to be printed out in reverse, for example if the user types in 'Hello World' i want that to be printed out 'dlroW olleH'
The first, you must know location of string (normally, when you write program, you will locate address of string). After that, you can print each letter from address of end of string to address of start of string by using function 02h of interrupt 21h; or you can also write reversed string into other address, after that you can print reversed string at the new address by using function 09h of interrupt 21h
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|