Commodore 128D User Manual page 295

Hide thumbs Also See for 128D:
Table of Contents

Advertisement

n
PRINT
memory. This can be a value from 0 to 65535. The second parameter
is a value from 0 to 255, to be placed in the location. The POKE
address depends on the BANK number. See BANK in this Encyclo
pedia for the appropriate BANK configurations.
EXAMPLE:
10 POKE 53280,1
Changes VIC border color
NOTE: PEEK, a function related to POKE, returns the contents of the
specified memory location, and is listed under FUNCTIONS. PEEK
pokes to a ROM location "bleed through" toRAM underneath. POKE
should be used with care—you can hang your system (requiring you
to reset the computer) or corrupt your data with an improper POKE.
—Output to the text screen
PRINT [print list]
The PRINT statement is the major output statement in BASIC. While
the PRINT statement is the first BASIC statement most people learn
to use, there are many variations of this statement. The word PRINT
can be followed by any of the following:
Characters inside quotes
Variable names
Functions
Punctuation marks
("text")
(A,B,A$,X$)
(SIN(23),ABS(33))
The characters inside quotes are often called literals because they
are printed literally, exactly as they appear. Variable names have the
value they contain (either a number or a string) printed. Functions
also have their number values printed.
Punctuation marks are used to help format the data neatly on the
screen. The comma separates printed output by 10 spaces, while
the semicolon separates printed output by three spaces. Either
punctuation mark can be used as the last symbol in the statement.
This results in the next PRINT statement acting as if it is continuing
the previous PRINT statement.
EXAMPLES:
RESULTS
10 PRINT "HELLO"
HELLO
20 A$ = "THERE":PRINT "HELLO ";A$
HELLO THERE
287
BASIC 7.0 ENCYCLOPEDIA—Basic Commands and Statements

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 128D and is the answer not in the manual?

Table of Contents