PICO-8 Wiki
Advertisement
poke( addr, [value,] [...] )
Writes one or more bytes to contiguous memory locations.
addr
The address of the first memory location.

value
The byte value to write to memory. Defaults to 0.

...
Additional byte values to be written consecutively to memory.

The poke() function writes one or more bytes to the 16-bit-addressable memory region.

See Memory for information about the memory layout.

See poke2() for a way to write 16-bit values to groups of two consecutive memory addresses, and poke4() to write 32-bit values to groups of four consecutive memory addresses.

Examples[]

poke(0x4300, 255)             -- write a byte to user RAM
poke(0x5f5c, delay, interval) -- set up btnp() intervals

See also[]

Advertisement