Skip to content
Andrew Owen edited this page May 30, 2023 · 2 revisions

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.

Welcome to the SE BASIC wiki


  • Press RETURN to return to this menu.
  • Enter the name of a TOPIC to display it.
  • Enter EXIT to return to BASIC.

Choose from the following topics:

  1. Quick start guide: QUICK
  2. User's guide: USER
  3. Configuration guide: CONFIG
  4. Language guide: LANGUAGE
  5. Language reference: BASIC
  6. Technical reference: TECH
  7. Developer's guide: DEV
  8. Acknowledgemets: CREDITS
  9. Licenses: LICENSE
Clone this wiki locally