Results 1 to 2 of 2

Thread: Quick Question

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2007
    Posts
    50

    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'

  2. #2
    New Member
    Join Date
    Mar 2008
    Posts
    1

    Re: Quick Question

    Quote 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
  •  



Click Here to Expand Forum to Full Width