EasyManua.ls Logo

Commodore 128D - Page 316

Commodore 128D
427 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...
STASH
STEP
STOP
SWAP
SYS
—Move
contents
of
host
memory
to
expansion
RAM
STASH
#bytes,
intsa,
expsa,
expb
Refer
to
FETCH
command
for
description
of
parameters.
—See
FOR/TO/STEP/NEXT
—Halt
program
execution
STOP
This
statement
halts
the
program.
A
message,
BREAK
IN
LINE
XXX,
occurs
(only
in
program
mode),
where
XXX
is
the
line
number
con
taining
the
STOP
command.
The
program
can
be
restarted
at
the
statement
following
STOP
if
the
CONT
command
is
used
immedi
ately,
without
any
editing
occurring
in
the
listing.
The
STOP
state
ment
is
often
used
while
debugging
a
program.
—Swap
contents
of
host
RAM
with
contents
of
expansion
RAM
SWAP
#bytes,
intsa,
expsa,
expb
Refer
to
FETCH
command
for
description
of
parameters.
—Call
and
execute
a
machine
language
subroutine
at
the
specified
address
SYS
address
[,[a]
[,[x]
[,[y]
[,s]ffl
This
statement
performs
a
call
to
a
subroutine
at
a
given
address
in
a
memory
configuration
set
up
according
to
the
BANK
command.
Optionally,
arguments
a,x,y
and
s
are
loaded
into
the
accumulator,
x,
y
and
status
registers,
respectively
before
the
subroutine
is
called.
See
BANK.
The
address
range
is
0
to
65535.
The
program
begins
executing
the
machine-language
program
starting
at
that
memory
locatfon.
If
the
machine
language
routine
returns
control
(via
RTS),
BASIC
execution
continues
after
the
SYS
command.
EXAMPLES:
SYS
40960
Calls
and
executes
the
machine-language
routine
at
location
40960.
SYS
8192,0
Calls
and
executes
the
machine-language
routine
at
location
8192
and
load
zero
into
the
accumulator.
See
RREG
command
to
pick
up
register
contents
after
a
SYS
call.
308
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals