You test the first byte. If that is not a comma, you test the next. You continue until you reach a comma or the end of the field. You do one thing if you find a comma, another if you don't.
Lot's of ways to achieve that. Get one working and show it. Remember, you have a lump of data, which starts at a particular address, and has a length. You want to start at a particular address (the same one) and only use a length of one. Then you want to look at address+1 and look at it for a length of one, and continue like that. Set your TIME to (,1), you'll get S322s or S0C4s, I bet, but you'll know why - you've run off the end, so just let the system chop it and concentrate on why you've run off the end.
- These users thanked the author BillyBoyo for the post:
- RISCCISCInstSet (Fri Dec 07, 2012 5:48 am)