EasyManua.ls Logo

Apple IIe - Page 110

Apple IIe
320 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
110
Apple
lie
Users Handbook
Applesoft
HIMEM
Integer
The
HIMEM
statement
defines
the
address
of
the
highest
memory
location
available
to
a BASIC
program
.
Configuration
HIMEM:
number
number
is
a
numeri
c constant
or
numeric
expression_: The value
of
number
should indicate
the
highest available
memory
address.
Th
.i
s value must
lie
between
-65535
to
65535
(-32767
to
32767
in
Integer
BASIC).
The
current
value
of
HIMEM
can be displayed by
entering
:
PRINT
PEEK
(116)
*256 +PEEK
(115)
for
Applesoft
PRINT
PEEK
(77)
*256 +PEEK
(76)
for
Integer
BASIC
If
the
HIMEM
:
is
set
lower
than
LOMEM
or
set
so
low
that
there
is
not
enough
room
for
the
program
to
run
,
an
out
of
memory
error
will
occur.
HIMEM
can
only
be used
in
the
immediate
mode
in
Integer
BASIC.
The
value
of
HIMEM
is
not
changed
by
the
commands
NEW,
CLEAR, RUN, and
DEL.
The
HIMEM
statement
is
generally
used
to
reserve
memory
for
a
machine
language
subroutine
called by
the
BASIC
program.
The
HIMEM
statement
keeps BASIC variable and array storage
separate
from
the
machine
langua~
subrout
i
ne
.

Other manuals for Apple IIe

Related product manuals