EasyManua.ls Logo

Commodore VIC-20 - Page 83

Commodore VIC-20
308 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...
IF
240
GOTO
40
or,
with
the
"<>O":
IF
240
<>0
GOTO
40
Therefore
the
branch
will
be
taken.
Now
compare
the
two
assignment
statements"
A
-
A
AND
10
A
=
A<10
In
the
first
example,
the
current
value
of
A
is
logically
ANDed
with
10
and
the
result
becomes
the
new
value
of
A.
A
must
be
in
the
integer
range
-r
32767
to
-32768.
In
the
second
example,
the
relational
expression
A<10
is
evaluated
to
-1
orO,so
A
must
end
up
with
a
value
of
-1
or
0.
I
67

Other manuals for Commodore VIC-20

Related product manuals