Commodore 64 User Manual page 134

Hide thumbs Also See for 64:
Table of Contents

Advertisement

40 PRINT J;
60 PRINT A,B,C,D
Also see: POS, SPC and TAB functions
PRINT#
There are a few differences between this statement and PRINT.
PRINT# is followed by a number, which refers to the device or data file
previously OPENed. This number is followed by a comma and a list to be
printed. The comma and semicolon have the same effect as they do in
PRINT. Please note that some devices may not work with TAB and SPC.
100 PRINT#1,"DATA VALUES"; A%, Bl, C$
READ
READ is used to assign information from DATA statements to vari-
ables, so the information may be put to use . Care must be taken to
avoid READing strings where READ is expecting a number , which will
give a TYPE MISMATCH ERROR.
REM (Remark)
REMark is a note to whomever is reading a LIST of the program. It
may explain a section of the program, or give additional instructions.
REM statements in no way affect the operation of the program, except
to add to its length. REM may be followed by any text.
RESTORE
When executed in a program, the pointer to which an item in a DATA
statement will be READ next is reset to the first item in the list. This gives
you the ability to re-READ the information. RESTORE stands by itself on a
line.
RETURN
This statement is always used in conjunction with GOSUB. When the
program encounters a RETURN, it will go to the statement immediately
following the GOSUB command. If no GOSUB was previously issued, a
RETURN WITHOUT GOSUB ERROR will occur.
124

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Commodore 64

Table of Contents