Title
Left ArrowCheats HomeRight ArrowCheats Misc ListCheats Number ListCheats A ListCheats B ListCheats C ListCheats D ListCheats E ListCheats F ListCheats G ListCheats H ListCheats I ListCheats J ListCheats K ListCheats L ListCheats M ListCheats N ListCheats O ListCheats P ListCheats Q ListCheats R ListCheats S ListCheats T ListCheats U ListCheats V ListCheats W ListCheats X ListCheats Y ListCheats Z List

Home Page

Projects...
PC Controller Box
Joystick Switch Box
c128D Refurb

Programs...
Byte Simulator
Cheat 'O Matic
GEOS

Collections...
3D Models
Book Collection

Information...
My BASIC Notes
Web Links

eMail Me

Note: You must add uk to the end of the address, it's to help prevent spam.

My BASIC Notes

Basic2 Commands
Disk Drives
ASCII and CHR$ Codes
PEEK's and POKE's
RAM Memory Map
ROM Memory Map
Screen Display
Sprite

RESTORE
Abbreviation: RE <SHIFT+S>

TYPE: Statement
FORMAT: RESTORE

Action: BASIC maintains an internal pointer to the next DATA constant to be READ. This pointer can be reset to the first DATA constant in a program using the RESTORE statement. The RESTORE statement can be used anywhere in the program to begin re-READing DATA.

EXAMPLES of RESTORE Statement:

100 FOR X=1 TO 10: READ A(X): NEXT
200 RESTORE
300 FOR Y=1 TO 10: READ B(Y): NEXT

4000 DATA 3.08, 5.19, 3.12, 3.98, 4.24
4100 DATA 5.08, 5.55, 4.00, 3.16, 3.37

(Fills the two arrays with identical data)

10 DATA 1,2,3,4
20 DATA 5,6,7,8
30 FOR L= 1 TO 8
40 READ A: PRINT A
50 NEXT
60 RESTORE
70 FOR L= 1 TO 8
80 READ A: PRINT A
90 NEXT


Commodore Cheetah made by Allen Monks, started in the year 2000.