POKE

POKE is a CBM BASIC command that puts numbers directly into memory.

Example

The color of the screen border is held in memory address 53280 ($d020). The POKE below changes its value to 1, the number for white.

POKE 53280, 1

Because the Commodore 64 has a 16-bit address space, the smallest memory location you can POKE is , the largest you can POKE is 65535.

POKE 0, 1
POKE 65535, 1

Related Pages

  • PEEK - look at a memory location.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.