PAPER
PAPER [#<stream expression>,]<masked ink>
10 MODE 0
20 FOR p=0 TO 15
30 PAPER p:CLS
40 PEN 15-p
50 LOCATE 6,12:PRINT "PAPER"p
60 FOR t=l TO 500: NEXT t
70 NEXT p
COMMAND: Sets the background ink for characters. When characters are written to the text screen,
the character cell is filled with the PAPER ink before the character is written - unless the
transparent mode has been selected.
For PAPER/MODE/colour correlation, see Table 2, page F3.4.
Associated keywords: INK, WINDOW, PEN
PEEK
PEEK (<address expression>)
10 MODE 2
20 INK 1,0: INK 0,12: BORDER 12
30 INPUT "Start address for examination";first
40 INPUT "End address for examination";last
50 FOR n= first TO last
60 VALUE$=HEX$(PEEK(n),2)
70 PRINT VALUE$;
80 PRINT" at ";HEX$(n,4),
90 NEXT
FUNCTION: Examine the contents of a memory location. The above ‘utility’ program allows you to
browse through the RAM of the CPC464. It reads the RAM under the lower (&0000-&3FFF) and
upper (&C000-&FFFF) ROM - not the ROM.
Associated keywords: POKE