curif / AgeOfJoy-2022.1

Age of Joy Unit V2022.1
13 stars 7 forks source link

DATA/READ/RESTORE #504

Open curif opened 1 month ago

curif commented 1 month ago

READ intialy points to the first DATA bit, and then moves its internal pointer to the next one, yes DATA may have several data bits, separated by a comma several DATA lines may exist, READ will just from one to the other you may want the RESTORE keyword, that forces the DATA pointer to a given line number useful to reprocess the same DATA again and again

curif commented 1 month ago

image image image

curif commented 1 month ago
1000 DATA "names", "Ronald", "Reagan"
1010 DATA "ages", 23
1020 READ "names", NAME, LASTNAME
1030 READ "ages", AGE
1040 PRINT 0,0, NAME + " " + LASTNAME + " " + AGE