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'
Printable View
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 21hQuote:
Originally Posted by Vb Programmer