Shop OBEX P1 Docs P2 Docs Learn Events
Targeting specific index bytes with SPSTR function — Parallax Forums

Targeting specific index bytes with SPSTR function

perry.gnoidperry.gnoid Posts: 10
edited 2007-10-30 19:58 in BASIC Stamp
Hi All -
I'm using the BS2px stamp and trying to SERIN multiple bytes with SPSTR function. I need to divide the bytes into multiple messages for speed but want to save each message into specific indexes so as to not overwrite the previous message.

Is there a method to target a specific index byte as a starting point? Right now, I have the 1st message as 8 bytes and by default starts at index 0.
SERIN 16, 16780, [noparse][[/noparse]SPSTR 8]

I want the next message to start at index 9 and so forth staggering upward creating a total of 32 bytes.

Thanks!
p

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-10-30 19:58
    There are no provisions for starting the SPSTR at any location other than zero. You could copy one string to another location in the scratchpad, but that will take time that it sounds like you can't afford.
Sign In or Register to comment.