LESSON 8 OF 13
PEEK AND POKE
Talking directly to the hardware.
The C64's chips are controlled by writing numbers into memory addresses. POKE 53280,2 writes 2 into address 53280 — and 53280 happens to be the border colour register, so the border turns red. 53281 is the background.
Colours run 0 to 15: black, white, red, cyan, purple, green, blue, yellow, orange, brown, light red, dark grey, grey, light green, light blue, light grey. The familiar power-on look is border 14 and background 6.
PEEK(53280) reads the value back. This is the doorway to everything the C64 can do that BASIC has no command for: screen, sprites, sound.
Type with the keyboard under the screen, or tap the blue screen to use your phone's own keyboard. While a program runs, keys go to INPUT and GET. When it says READY., type a line and press RETURN to run it straight away.