EasyManua.ls Logo

Commodore Plus 4 - Page 244

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...
232
Machine
Language
on
the
Commodore
Plus/4
Example:
G
2000
The
monitor
is
asked
to
begin
executing
with
the
instruction
at
location
$2000.
Searching
Memory
for Specified
Bytes—The
H
Command
The
H
(Hunt)
command
is
used
to
search
a
section
of
memory
for
occurrences
of
specified
data
byte(s).
The
syntax
is
as
follows:
H
start
address
end
address
data
The
start
address
is
the
hexadecimal
address
at
which
the
section
of
memory
begins.
The
end
address
is
the
last
hexadecimal
address
of
the
section
of
memory.
The
data
are
the
one
or
more
hexadecimal
bytes
(one
or
two
digits)
separated
by
spaces,
or
a
character
string
preceded
by
a
single
quote.
Every
location
from
the
starting
address
through
the
ending
address
is
exam
ined
and
compared
with
the
first
byte
of
the
data.
When
a
match
is
found,
the
next
location
is
compared
with
the
second
byte,
and
so
on
until
a
difference
is
found.
If
no
difference
is
found,
the
starting
location
of
the
data
in
memory
is
displayed.
If
the
data
are
specified
by
the
use
of
a
character
string,
the
bytes
that
match
are
the
corresponding
CHR$
codes
(see
Appendix
C)
of
the
characters.
Example:
H
8000
FPFP
43
42
4D
8007
PC56
The
monitor
is
asked
to
search
every
memory
location
from
$8000
to
$FFFF
inclusive
for
the
start
of
the
sequence
$43,
$42,
$4D.
The
monitor
finds
this
exact
sequence
twice,
starting
at
$8007
and
starting
at
$FC56.
Example:
H
8000
PFPP
'COMMODORE
80CP
E3A7
The
monitor
is
asked
to
search
every
memory
location
from
$8000
through
$FFFF
for
the
start
of
the
sequence
of
bytes
given
by
the
CHR$
codes
of
each
letter
in
the
word
"COMMODORE."
It
finds
this
sequence
twice,
starting
at
$80CF
and
at
$E3A7.
Loading
from
Cassette
or
Disk—The
L
Command
The
L
(Load)
command
is
used
to
load
a
machine-language
program
previously
saved
(see
the
section
on
the
S
command)
on
cassette
or
disk.
The
syntax
is
as
follows:

Other manuals for Commodore Plus 4

Related product manuals