FANDOM


peek4( addr )
Reads a 32-bit value from four consecutive memory locations.
addr
The address of the first memory location.

The peek4() function reads a 32-bit value from four consecutive bytes in the addressable memory region (0x000-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

poke(0x4300, 0x00)
poke(0x4301, 0xc0)
poke(0x4302, 0xff)
poke(0x4303, 0x0f)
 
b = peek4(0x4300)  -- 0x0fff.c000 = 4095.75

See also Edit

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