EasyManua.ls Logo

AMSTRAD cpc 6128 - Himem; If

AMSTRAD cpc 6128
520 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...
HIMEM
HIMEM
PRINT
HIMEM
42619
FUN
CTI 0
N:
Returns
the
address of
the
HIghest
byte of M E M ory used by BASIC,
(which
may
be
altered
by
the
MEMO
RY
command).
NOTE -BASIC
uses
only
the
first 64K of
the
memory.
Associated keywords: F
RE,
M E M 0 R
Y,
S Y M B 0
L,
S Y M B 0 L AFT E R
IF
I F <logical expression>
THE
N <option part>
[E
LSE <option part>]
10
MODE
1
20
x=CINT(RND*100)
30
PRINT
"Guess
my
number (0
to
100)"
40
INPUT
n
50
IF
,n<x
THEN
PRINT
n;"is
too
low.,,"
60
IF
n>x
THEN
PRINT
n;"istoo
high
..
,"
70
IF
n=x
THEN
80
ELSE
c=c+1:GOTO
40
80
PRINT
"Well
done,
you
got
it
in";
90
PRINT
c+1;"guesses!"
run
COMMAND:
Determines
whether
the
<logical expression> is
true,
in
which case
the
first <option part> is executed.
If
the
<logical expression> is false,
any
<option part>
specified
in
the
EL
SE clause
is
executed, otherwise BASIC passes onto
the
next
line.
I F
THE
N commands
may
be
nested
to
any
depth,
and
are
terminated
by end ofline.
Therefore
it
is NOT possible to
have
further
statements
which
are
independent of
the
I F
THE
N command, on
the
same
line.
Where
the
result
of
the
<logical expression>
requires
that
a line should be jumped to,
the
command
may
be given
as
either:
Examples
....
IF
.a
= 1
THE
N 1 00
.... or ....
IF
a=1
GOTO
100
.... or ....
IF
a=1
THEN
GOTO
100
Associated keywords:
EL
SE,
GOT
0,
THE
N
Chapter 3 Page
32
Complete
List
of Keywords

Table of Contents

Related product manuals