FANDOM


poke2( addr, val )
Writes a 16-bit value to two consecutive memory locations.
addr
The address of the first memory location.

val
The 16-bit value.

The poke2() function writes a 16-bit value to two consecutive bytes in the addressable memory region (0x0000-0x7fff). The value is interpreted in the Little Endian representation, which stores the lowest 8 bits in the first byte.

See Memory for information about the memory layout.

Examples Edit

poke2(0x4300, 0x0cff)
 
b0 = peek(0x4300)  -- 0xff
b1 = peek(0x4301)  -- 0x0c

See also Edit

Community content is available under CC-BY-SA unless otherwise noted.