EasyManua.ls Logo

Commodore Plus 4 - Page 368

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...
356
Using
Peripheral
Devices
displaying
it
on
the
screen.
Because
no
call
is
made
to
SETMSG,
machine-
language
monitor
error
messages
are
displayed
if
the
program
is
executed
from
the
monitor.
2000
2002
2004
2006
2009
200B
200D
200F
2012
2015
2017
201A
201C
201F
2021
2024
2026
2029
202C
202E
2030
2033
2035
2038
203A
203D
203F
2041
2043
2046
2048
204A
204C
204F
2052
2054
2057
2059
205C
205E
2061
2064
2067
2069
206C
206E
A9
A2
A0
20
A9
A2
A0
20
20
B0
20
A9
20
A2
20
B0
20
20
C9
D0
20
A9
20
B0
20
A9
A2
A0
20
A9
A2
A0
20
20
B0
20
A2
20
B0
20
20
20
F0
20
A9
20
02
08
02
BA
0A
00
21
BD
C0
5F
A0
0D
D2
02
C9
50
CF
D2
0D
F6
CC
02
C3
3C
A0
02
08
02
BA
06
00
21
BD
C0
22
A0
02
C6
18
CF
D2
B7
F5
CC
02
C3
FF
FF
FF
20
FF
FF
FF
FF
FF
FF
20
FF
FF
FF
20
FF
FF
FF
FF
FF
FF
LDA
LDX
LDY
JSR
LDA
LDX
LDY
JSR
JSR
BCS
JSR
LDA
JSR
LDX
JSR
BCS
JSR
JSR
CMP
BNE
JSR
LDA
JSR
BCS
JSR
LDA
LDX
LDY
JSR
LDA
LDX
LDY
JSR
JSR
BCS
JSR
LDX
JSR
BCS
JSR
JSR
JSR
BEQ
JSR
LDA
JSR
#$02
#$08
#$02
$FFBA
#$0A
#$00
#$21
$FFBD
$FFC0
$2076
$20A0
#$0D
$FFD2
#$02
$FFC9
$2076
$FFCF
$FFD2
#$0D
$2026
$FFOC
#$02
$FFC3
$2076
$20A0
#$02
#$08
#$02
$FFBA
#$06
#$00
#$21
$FFBD
$FFC0
$2076
$20A0
#$02
$FFC6
$2076
$FFCF
$FFD2
$FFB7
$205E
$FFCC
#$02
$FFC3
Logical
file
number
for
data
file.
Device
number of
disk
drive.
Channel
number
to
use.
SETLFS.
Length of
file
name.
Low
byte
of
address
of
file
name.
High
byte
of
address
of
file
name.
SETNAM.
OPEN.
Check
for
I/O
errors.
Check
the
disk
error
channel.
Carriage
return
character.
Send
to
the
screen.
Logical
file
number
for
data
file.
Set
up
as
the
output
channel.
Check
for
I/O
errors.
Receive
input
from
keyboard.
Send
to
file.
Check
if
received
carriage
return.
If
not,
continue.
Return
I/O
channels
to
defaults.
Logical
file
number
for
data
file.
Close
the
file.
Check
for I/O
errors.
Check
disk
error
channel.
Logical
file
number
to
be
used
for
data
file.
Device
number
of
disk
drive.
Channel
number
to
use.
SETLFS.
Length
of
file
name
(no
longer
use
,S,W
part).
Low
byte
of
address
of
file
name.
High
byte
of
address
of
file
name.
SETNAM.
OPEN.
Check
for
I/O
errors.
Check
disk
error
channel.
Logical
file
number
of
data
file.
Set
up
as
the
input
channel.
Check
for I/O
errors.
Get
a
character
from
the
file.
Put
it
on
the
screen.
Read
the
status
byte.
If
zero,
not
at
end-of-file
so
continue.
Return
I/O
channels
to
defaults.
Logical
file
number
of
data
file.
Close
the
file.