beautypg.com

Rpbasic-52 programming guide, Restore – Remote Processing BASIC 52 User Manual

Page 113

background image

RPBASIC-52 PROGRAMMING GUIDE

2-94

RESTORE

Syntax:

R E S T O R E

Function:

Resets the R EAD instruction pointer to the b eginning of the D ATA list.

Mode:

Run

Use:

R E S T O R E

Cards:

All

D E S C R IP T I ON

After a RE STOR E statem ent is executed , the next RE AD state ment acc esses the first item in th e first data
s ta t em e n t i n t he p ro g ra m .

E R R O R

NO DA TA - no DATA list provided.

EXAMPLE

100 READ A,B,C
110

PRINT A,B,C

120 RESTORE
130 READ X,Y,Z
140 PRINT X,Y,Z
150 READ A,B,C
160 PRINT A,B,C
150 DATA 1,2,3*2
150 DATA 6,9,12

>run

1 2 6
1 2 6
6 9 12