EasyManua.ls Logo

Commodore Plus 4 - Page 248

Commodore Plus 4
464 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...
236
Machine
Language
on
the
Commodore
Plus/4
Example:
;
2000
00
05
The
monitor
is
asked
to
change
the
program
counter
to
$2000,
the
status
register
to
$00,
and
the
accumulator
to
$05.
The
remaining
registers
are
unchanged.
Performing
an
R
command
at
this
point
verifies
the
changes.
R
PC
SR
AC
XR
YR
SP
;
2000
00
05
00
00 P9
Saving
on
Cassette
or
Disk—The
S
Command
The
S
(Save)
command
is
used
to
save
a
section
of
memory
on
cassette
or
disk.
The
syntax
is
as
follows:
S
filename,device,start
address,end
address
The
filename
is
the
Plus/4
file
name
surrounded
by
quotation
marks.
The
device
is
the
Plus/4
device
number
(see
Chapter
6).
The
start
address
is
the
address
of
the
first
location
to
save.
The
end
address
is
the
address
FOLLOWING
the
last
location
to
save.
The
monitor
saves
the
specified
section
of
memory
in
a
program
file
with
the
specified
name.
It
automatically
saves
the
start
address
in
the
first
two
bytes
of
the
file,
so
that
it
is
loaded
into
the
proper
memory
location
by
the
L
(Load)
command.
It
is
important
to
note
carefully
that
the
memory
range
specified
is
NOT
saved
inclusively;
rather,
the
start
address
is
included
and
the
end
address
is
not.
Example:
S"TEST"
,8,8000,3000
SAVING
TEST
The
monitor
is
asked
to
save
the
contents
of
memory
from
$2000
through
$2FFF
as
the
program
"TEST"
on
the
disk
drive
(device
8).
It
reports
that
it
is
saving
the
file.
Example:
S"TEST",1,2000,2100
PRESS
PLAY
&
RECORD
ON
TAPE
OK
SAVING
TEST
The
monitor
is
asked
to
save
the
contents
of
memory
from
$2000
through
$20FF
as
the
program
"TEST"
on
the
cassette
(device
1).

Other manuals for Commodore Plus 4

Related product manuals