NAME
-
peekpoke - peek and poke memory locations
SYNOPSIS
-
short peek(offset)
short offset;
short poke(offset, val)
short offset, val;
DESCRIPTION
-
Peek returns the value of the byte at offset offset from the
beginning of the current memory segment. Offset and
seg(mach) together specify a memory address. This function implements
the BASIC PEEK function.
Poke sets to val the byte at offset offset from the beginning
of the current memory segment. Offset and seg(mach) together
specify a memory address. This function implements the POKE statement.
SEE ALSO
-
seg(mach)
peek(func), poke(stmt)
WARNING
-
Operations involving absolute memory addresses ought not to be used.
from
The Basmark QuickBASIC Programmer’s Manual
by
Lawrence Leinweber