EasyManua.ls Logo

Commodore 128D - Page 326

Commodore 128D
427 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...
HEX$
INSTR
EXAMPLE:
10
DEF
FNAA(X)=(X-32)*5/9
20
INPUT
X
30
PRINT
FNAA(X)
RUN
?
40
(?
is
input
prompt)
4.44444445
NOTE:
If
GRAPHIC
is
used
in
a
program
that
defines
a
function,
issue
the
GRAPHIC
command
before
defining
the
function,
or
else
the
function
definition
is
destroyed.
—Return
number
of
available
bytes
in
memory
FRE(X)
where
X
is
the
bank
number.
X
=
0
to
check
BASIC
program
storage
and
X
=
1
to
check
for
available
BASIC
variable
storage.
EXAMPLES:
PRINT
FRE
(0)
Returns
the
number
of
free
bytes
for
BASIC
48893
programs.
PRINT
FRE
(1)
Returns
the
number
of
free
bytes
for
BASIC
64256
variable
storage.
—Return
hexadecimal
number
string
from
decimal
number
HEX$(X)
This
function
returns
a
four-character
string
containing
the
hexadeci
mal
representation
of
value
X
(0
<
=
X
<
=
65535).
The
decimal
counterpart
of
this
function
is
DEC.
EXAMPLE:
PRINT
HEX$(53280)
D020
—Return
position
of
string
1
in
string
2
INSTR
(string
1,
string
2
^starting
position])
The
INSTR
function
searches
for
the
first
occurrence
of
string
2
within
string
1,
and
returns
the
position
within
the
string
where
the
match
is
found.
The
optional
parameter
for
STARTING
POSITION
establishes
the
position
in
string
1
where
the
search
begins.
The
STARTING
POSITION
must
be
in
the
range
1
through
255.
If
no
match
is
found
or,
if
the
STARTING
POSITION
is
greater
than
the
length
of
string
1
or
if
string
1
is
null,
INSTR
returns
the
value
0.
If
318
BASIC
7.0
ENCYCLOPEDIA-Basic
Functions

Table of Contents

Other manuals for Commodore 128D

Related product manuals