poke( addr, val )
- Writes a byte to a memory location.
- addr
-
- The address of the memory location.
- val
-
- The byte value.
The poke()
function writes a byte to the addressable memory region (0x000-0x7fff). See Memory for information about the memory layout.
See poke2()
for a way to write a 16-bit value to two consecutive memory addresses, and poke4()
to write a 32-bit value to four consecutive memory addresses.
Examples
poke(0x4300, 255)