def seg - define the current segment
is used to set the "segmentation register" variable
for use by
is a pre-defined variable which holds the current 16 high-order address
If the NumExpr argument is not specified,
variable to reference the data segment.
NumExpr may be any numeric expression.
must be separated by a space or a tab.
To assign 42 to absolute memory location 1234AB78 (hexadecimal):
def seg = &H1234
poke &HAB78, 42
peek, poke, varptr, varptr$, seg
In most Basmark QuickBASIC implementations, 32 bit addresses are assumed.
is used to set the high-order 16 bits of an address for future
(although these have questionable utility in a UNIX environment).
is a variable provided to obtain the high-order 16
bits from a prior invocation of
In Microsoft BASIC, "pointers" (or addresses) are customarily stored
in integer variables.
This works out nicely on systems with 16-bit addresses
because integer variables are also 16-bits.
In Basmark QuickBASIC implementations
with 32-bit addresses, the high-order 16 bits must
be correctly set
The Basmark QuickBASIC Programmerís Manual