PEEK - source-solutions/HELP GitHub Wiki

PEEK


value = PEEK(address)

Returns the value of the memory at segment * 16 + address where segment is the current segment set with DEF SEG.

Parameters

address is a numeric expression in [-32768 to 65535]. Negative values are interpreted as their two's complement.

Notes

Currently PEEK only accepts values in the range [0 to 65535] and ignores SEG, returning values from the 64K address space.

Errors

  • address has a string value: Type mismatch.
  • address is not in [-32768 to 65535]: Overflow.
⚠️ **GitHub.com Fallback** ⚠️