PDA

Click to See Complete Forum and Search --> : Strings


Guy007
Apr 10th, 2006, 02:39 AM
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!

Al42
Apr 10th, 2006, 10:50 PM
When SI points to $. Just test each character as you get it. It's the old DOS "print" routine.