EasyManua.ls Logo

Commodore VIC-20 - CLR; CMD

Commodore VIC-20
404 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
342 The VIC 20
User
Guide
CLR
The
CLR
statement sets all numeric variables to zero and assigns null
values to all string variables. All array space in memory
is
released. This
is
equivalent to turning the computer off, then fuming it back on and
reloading the program into memory.
CLR
closes all logical files
that
are
currently open within the executing program.
Format:
CLR
A program will continue to run following execution of a
CLR
statement if the statement's execution does not adversely affect program
logic.
Example:
lee
CLR
CMD
The
CMD
statement sends all output that would have gone to the
display
to
another specified unit. Output goes to
that
unit, instead of the
display, until a PRINT# statement specifying the same logical
file
number
that was opened
is
executed. At least one PRINT# statement must follow a
CMD
statement.
Format:
CMDIf
The
CMD
statement assigns a line printer output channel to logical file
If·
After execution
of
a
CMD
statement,
PRINT
and LIST both print data
instead
of
displaying it.
Example:
The following sequence uses
CMD
to print program listings:
OPEN
5,4
CMD
5
LIST
PRINTI3
CLOSE
5
Open logicalfile 5 selecting the printer
Direct subsequent output to the printer
Print the program listing
Print a carriage return and deselect the printer
Close logical file 5

Other manuals for Commodore VIC-20

Related product manuals