EasyManua.ls Logo

Commodore VIC-20 - Page 140

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...
All
of
the
commands
that
are
available
in
VIC
BASIC
are
simply
recognized by another
huge
machine
language
program
built
into
your
VIC
20.
This
huge
program
"RUN"
hs
the
appropriate
piece
of
machine
language
depending
on
which
VIC
BASIC
command
is
being
executed.
This
program
is
called
the
"BASIC
interpreter,11
because
it
interprets
each
command,
one
by
one,
unless
it
encounters
a
command
it
does
not
understand,
and
then
the
familiar
message
appears:
7SYNTAX
ERROR
READY.
WHAT
DOES
MACHINE
CODE
LOOK
LIKE?
SIMPLE
MEMORY
MAP
OF
THE
VIC
20
Address
Description
0
Start
of
memory.
to
Memory
used
by
BASIC
and
the
operating
system.
1023
1024
to
This
is
a
gap
in
memory
for
a
3K
memory
expansion
4095
module
4096
This
fS
YOUR
memory.
This
is
where
your
BASIC
or
machine
language
programs,
or both,
are
stored.
This
is
also
where
the
screen
memory
would
begin
on
a
VIC 20
that
has
at
least
8K
of
RAM
expansion
memory,
in
which
case
the
screen
RAM
that
follows
would
become
user
memory
space:
7679
continuing
up
to
the top
of
the
expansion
memory.
124
I
You
should
be
familiar
with
the
PEEK,
and
POKE
commands
rn
the
CBM
BASIC
language
for
changing
memory
locations.
You
will
probably
have
used
them
for
graphics
on
the
screen,
and
for
sound
.
effects.
The
memory
locations
will
have
been
36574r
36875,
36876,
36877,
36878
for
sound
effects.
This
memory
location
number
is
known
as
the
"address"
of
a
memory
location.
If
you can
imagine
the
memory
in
the
VIC
20
as a
street
of
houses,
the
number
on
the
door
is.
of
course, the
address,
Now
we
will
look
at
which
parts
of
the
street
are
used
for
which
purpose.
i