peek( addr )

Reads a byte from a memory location.

The address of the memory location.

The peek() function reads a byte from the addressable memory region (0x000-0x7fff). See Memory for information about the memory layout.

See peek2() for a way to read a 16-bit value from two consecutive memory addresses, and peek4() to read a 32-bit value from four consecutive memory addresses.

Examples Edit

b = peek(0x4300)

See also Edit

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