RESTORE (BASIC)

From C64-Wiki
Jump to navigationJump to search
Disambiguation The title of this article is ambiguous. RESTORE (Disambiguation).


BASIC keyword
Keyword: RESTORE
Abbreviation: R, E, Shift+S
Type: Command
Token code: 140/$8C
Handling routine
in BASIC ROM:
43037–43051
$A81D–A82B
List of all BASIC keywords


Remark: This article describes the BASIC command RESTORE in BASIC V2 of the Commodore 64.

Typ: Command
General Programming-Syntax: RESTORE

The BASIC command RESTORE (not to be confused with the RESTORE key) is used to clear the pointer of the next data value. The next read data value will be the first data value.

Examples[edit | edit source]

10 FOR X=0 TO 10: READ A(X): PRINT A(X),;:NEXT
20 RESTORE
30 PRINT: PRINT "once again: ":FOR X=0 TO 10: READ A(X): PRINT A(X),;:NEXT
40 DATA 10,20,30,40,-55,60,70,0,90,100,111
BASIC V2.0 (second release) Commands

ABS | AND | ASC | ATN | CHR$ | CLOSE | CLR | CMD | CONT | COS | DATA | DEF | DIM | END | EXP | FN | FOR | FRE | GET | GET# | GOSUB | GOTO | IF | INPUT | INPUT# | INT | LEFT$ | LEN | LET | LIST | LOAD | LOG | MID$ | NEW | NEXT | NOT | ON | OPEN | OR | PEEK | π | POKE | POS | PRINT | PRINT# | READ | REM | RESTORE | RETURN | RIGHT$ | RND | RUN | SAVE | SGN | SIN | SPC | SQR | STATUS/ST | STEP | STOP | STR$ | SYS | TAB | TAN | THEN | TIME/TI | TIME$/TI$ | TO | USR | VAL | VERIFY | WAIT