SecondBASIC Documentation v3
Home
/
Function Reference
/
Peek(), PeekInt(), PeekLong&()
Peek(), PeekInt(), PeekLong&()
Description:
Reads a byte, word, or long word from <address>.
Syntax:
Peek(<address>)
PeekInt(<address>)
PeekLong&(<address>)
Part
Description
<address>
Required. The address of memory to read from.
Example:
a = 0
b = 256
c = PeekInt(VarPtr&(b))
d& = PeekLong&(VarPtr&(a))
Print c, d&