Commodore 128 System Manual page 296

Table of Contents

Advertisement

POKE
Change the contents of a RAM memory location
POKE address, value
The POKE statement allows changing of any value in the
Commodore 128 RAM, and allows modification of many of the
Commodore 128 Input/Output registers. The keyword POKE is
always followed by two parameters. The first is a location inside
the Commodore 128 memory, this can be a value from 0 to
65535. The second parameter is a value from 0 to 255, which is
placed in the location, replacing any value that was there
previously. The value of the memory location determines the bit
pattern of the memory location, ln C128 mode the POKE occurs
into the currently selected RAM bank. The POKE address
depends on the BANK number. See BANK in this Encyclopaedia
for the appropriate BANK configurations.
EXAMPLE:
10 POKE 53280,1
Changes VIC border color (BANK 15 in C128 mode)
NOTE: PEEK, a function related to POKE, which returns the
contents of the specified memory location, is listed under
FUNCTIONS.
PRINT
Output to the text screen
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 of quotes (" text' lines)
Variable names (A, B, A$, X$)
Functions (SIN(23), ABS(33))
Punctuation marks (;,)
17-54

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

128d

Table of Contents