EasyManua.ls Logo

Commodore Plus 4 - Page 378

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...
366
Using
Peripheral
Devices
.
2018
A9
D8
.
201A
AS
06
LDA
#$D8
LDX
#$06
.
201C
A0
21
LDY
#$21
.
20
IE
20
D8
FP
JSR
$PFD8
.
2021
BO
5D
BCS
$2080
.
2023
20
B7
FP
JSR
$FFB7
.
2026
DO
58
B1O3
$2080
2028
00
BRK
Location
of
save
from
address.
Low
byte
of
the
address
to
save
to
plus
1.
High
byte
of
the
address
to
save
to
plus
1.
SAVESP.
Carry
set
indicates
error.
Get
the
status
byte.
If
there
is
an
error,
put
out
error
message.
Stop
processing.
The
following
routine
prints
the
word
ERROR
to
the
screen:
2080
A2
06
LDX
#$06
Length
of
the
word.
2082
BD
F8
20
LDA
$20F8,X
Get
a
charcter
of
the
message.
2085
20
D2
PP
JSR
$PFD2
Send
to
the
screen.
2088
CA
DEX
Decrement
the
character
counter.
2089
10
F7
BPL
$2082
If
not
done,
continue.
208B
00
BRK
.
Stop
processing.
These
data
are for
the
message
and
file
name:
>20F8
>2100
Load
52
4P
52
52
45
OD
20
20
53
41
56 50
52
47
00
00
When
a
file
is
to
be
loaded
into
memory,
the
file
name
by
which
it
is
known
on
the
tape
may
be
stored
in
CHR$
codes
in
ascending
order
somewhere
in
memory.
If
no
file
name
is
specified,
the
next
file
found
on
the
tape
will
be
loaded.
The
following
outlines
the
operations
required:
1.
Load
.X
with
$01
(the
device
number
of
the
Datassette).
Load
.Y
with
$00
for
a
relocated
load,
or
a
nonzero
value
for
a
nonrelocated
load.
This
flag
is
overridden
if
the
file
was
SAVEd
as
a
nonrelocatable
file,
as
described pre
viously.
Call
SETLFS
($FFBA).
2.
Load
.A
with
the
length
of
the
file
name
($00
if
none),
.X
with
the
low
byte
of
the
address
at
which
the
name
is
stored,
and.
Y
with
the
high
byte
of
the
address
at
which
the
name
is
stored,
and
call
SETNAM
($FFBD).
3.
Load
.A
with
$00
to
indicate
a
load.
If
it
is
to
be
a
relocated
load,
load
.X
with
the
low
address
to
begin
loading
and.
Y
with
the
high
address
to
begin
loading.
Call
LOADSP
($FFD5).