Results 1 to 2 of 2

Thread: Strings

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    2

    Exclamation Strings

    i have a string in memory:

    DB "This is my message$"

    I want to loop on the string, taking each character ONE AT A TIME, and performing some operation on them.

    I started by making SI point to the first character - then i increment it by one every time. But how do i know when i arrived at the end of the string?

    Thanks for your help guys!

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,692

    Re: Strings

    When SI points to $. Just test each character as you get it. It's the old DOS "print" routine.

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