EasyManua.ls Logo

Commodore VIC-20 - Page 142

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...
there
are
different
tokens
for
different
instructions,
which
also
take
up
just
one
byte
(memory
location
=
byte).
Machine
language
instructions
are
very
simple,
i.e.,
each
individual
instruction
cannot
achieve
a
great
deal.
Machine
language
instructions
either
change
the
contents
of
a
memory
location,
or
change
one
of
the
internal
registers
(special
storage
locations)
inside
the
microprocessor.
The
internal
registers
form
the
very
basis
of
machine
language.
REGISTERS
INSIDE
THE
6502
MICROPROCESSOR
THE
ACCU
MULATOR—This
is
THE
most
important
register
in
the
microprocessor.
Various
machine
language
instructions
allow
you
to
copy
the
contents
of
a
memory
location
into
the
accumulator,
or
copy
the
contents
of
the
accumulator
into
a
memory
location,
or
modify
the
contents
of
the
accumulator
or
some
other
register
directly,
without
affecting
any
memory.
Also,
the
accumulator
is
the
only
register
that
has
instructions
to
perform
math
on
it.
THE
X
INDEX
REGISTER—There
are
instructions
to
do
nearly
all
of
the
transformations
you
can
do
to
the
accumulator,
and
other
instructions
to
do
things
that
only
the
X
register
can
do.
Again,
various
machine
language
instructions
allow
you
to
copy
the
contents
of
a
memory
location
into
the
X
register,
or
copy
the
contents
of
the
X
register
into
a
memory
location,
or
modify
the
contents
of
the
XF or
some
other
register
directly,
without
affecting
any
memory.
THE
Y
INDEX
REGISTER—There
are
instructions
to
do
nearly
all
of
the
transformations
you
can
do
to
the
accumulator,
and
the
X
register,
and
other
instructions
to
do
things
that
only
the
Y
register
can
do.
Again,
various
machine
language
instructions
allow
you
to
copy
the
contents
of
a
memory
location
into
the
Y
register,
or
copy
the
contents
of
the
Y
register
into
a
memory
location,
or
modify
the
contents
of
the
Yt or
some
other
register
directly,
without
affecting
any
memory.
THE STATUS
REGISTER—This
register
consists
of
eight
'Hags'1
(a
flag
=
something
that
indicates
that
something
has, or
has
not,
occurred).
THE
PROGRAM
COUNTER—This
contains
the
address
of
the
current
machine
language
instruction
being
executed.
Since
the
126
L