RESTORE (BASIC)

From C64-Wiki

Jump to: navigation, search
Disambiguation The title of this article is plurivalent. 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 at the Commodore 64.

Typ: Command
General Programming-Syntax: RESTORE

The BASIC-command RESTORE (don't 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.

[edit] Examples

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-Commands of Commodore 64

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

 
Personal tools
Help and Feedback
In other languages