PEEK - source-solutions/HELP GitHub Wiki
value = PEEK(address)
Returns the value of the memory at segment * 16 + address
where segment
is the current segment set with DEF SEG.
address
is a numeric expression in [-32768 to 65535]
. Negative values are
interpreted as their two's complement.
Currently PEEK
only accepts values in the range [0 to 65535]
and ignores SEG
,
returning values from the 64K address space.
-
address
has a string value: Type mismatch. -
address
is not in[-32768 to 65535]
: Overflow.