MMBasic for Windows - betas


Author Message
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5571
Posted: 12:37pm 03 Mar 2022      

The DATA system on the PicoMite isn't a disaster now you can have relative RESTORE points. There's no need for READ loops to get to where you want. You can have as many pointers at you like pointing to the data block.


DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA

mypointer=1
mypointer20=20

RESTORE mypointer 'restores to first item

RESTORE (mypointer+5) '6th item

RESTORE (mypointer20+5) '25th item


Note that mypointer and mypointer20 are independent as are the values added to them. You only need a RESTORE() to get to any DATA item.
Edited 2022-03-03 22:47 by Mixtel90