EasyManua.ls Logo

Commodore VIC-20 - Page 143

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...
operating
system
is
always
':RUN"ning
in
the
VIC
20
(or.
for
that
matter,
any
computer),
the
program
counter
is
always
changing.
It
could
only
be
stopped
by
halting
the
microprocessor
in
some
way.
The
Stack
Pointer—This
register
contains
the
location
of
the
first
empty
place
on
the
stack.
The
stack
is
used
for
temporary
storage
by
machine
language
programs,
and
by
the
computer.
THE
TOOLS
AVAILABLE;
GETTING
READY.
. .
How
Can You
Write
Machine
Language
Programs?
Since
machine
language
programs
reside
in
memory,
and
there
is
no
facility
in
your
VIC
20
for
writing
and
editing
machine
language
programs,
you
must
use
either
a
program
to
do
this,
or
write
for
yourself
a
BASIC
program
that
"allows"
you
to
write
machine
language.
Most
commonly
used
to
write
machine
language
programs
are
"assemblers."
These
packages
allow
you
to
write
machine
language
instructions
in
a
standardized
"mnemonic"
format,
which
makes
the
machine
language
program
a
good
deal
more
readable
than
a
stream
of
numbers.
To
recap:
A
program
that
allows
you
to
write
machine
language
programs
in
mnemonic
format
is
called
an
"assembler,"
and
also,
a
program
that
displays
a
machine
language
program
in
mnemonic
format
is
called
a
"disassembler."
Available
for
your
VIC
20
is
a
machine
language
monitor
cartridge
(with
assembler
disassembler,
etc.)
made
by
Commodore.
VICMon
The
VICMon
cartridge available
from
your
local
dealer
is
a
program
that
allows
you
to
escape
from
the
world
of
VIC
BASIC,
into
the
land
of
machine
language.
It
can
display
the
contents
of
the
internal
registers
in
the
6502
microprocessor,
and
it
allows
you
to
display
portions
of
memory,
and
change
them
on
the
screen,
using
the
screen
editor.
It
also
has
a
built-in
assembler
and
disassembler,
and
many
other
features
that
allow
you
to
write
and
edit
machine
language
programs
easily.
You
don't
HAVE
to
use
an
assembler
to
write
machine
language,
but the
task
is
considerably
easier
with
it.
If
you
wish
to
write
machine
language
programs,
it
is
advised
strongly
that
you buy
an
assembler
of
some
sort.
Without
an
assembler
you
will
probably
have
to
"POKE"
the
machine
language
program
into
memory,
which,
if
you
value
your
sanity,
is
totally
inadvisable.
This
manual
127