EasyManua.ls Logo

Commodore Plus 4 - Page 306

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...
294
Machine
Language
on
the
Commodore
Plus/4
Immediate
Mode
An
instruction
in
immediate
mode
consists
of
2
bytes.
The
first
is
the
opcode
for
the
desired
instruction.
The
second
is
the
data
for
use
with
the
instruction.
In
the
machine-language
monitor,
an
immediate
mode
instruc
tion
appears
in
this
form:
mnemonic
#$hli
where
mnemonic
is
an
instruction
mnemonic
and
h
represents
a
hexadecimal
digit.
The
following
instructions
are
available
in
immediate
mode:
ADC,
AND,
CMP,
CPX,
CPY,
EOR,
LDA,
LDX,
LDY,
ORA,
and
SBC.
A
b
solute
Mode
An
instruction
in
absolute
mode
consists
of
3
bytes.
The
first
is
the
opcode
for
the
desired
instruction.
The
second
is
the
low
byte
of
the
address
of
the
data
to
be
used
with
the
instruction.
The
third
is
the
high
byte
of
the
address
of
the
data
to
be
used
with
the
instruction.
In
the
machine-language
monitor,
an
absolute
mode
instruction
appears
in
this
form:
mnemonic
where
mnemonic
is
an
instruction
mnemonic
and
h
represents
a
hexadecimal
digit.
The
following
instructions
are
available
in
absolute
mode:
ADC,
AND,
ASL,
BIT,
CMP,
CPX,
CPY,
DEC, EOR,
INC,
JMP,
JSR,
LDA, LDX,
LDY,
LSR,
ORA,
ROL,
ROR,
SBC,
STA,
STX,
and
STY.
Zero
Page
Mode
An
instruction
in
zero
page
mode
consists
of
2
bytes.
The
first
is
the
opcode
for
the
desired
instruction.
The
second
is
the
low
byte
of
the
address
of
the
data
to
be
used
with
the
instruction.
The
high
byte
of
the
address
is
assumed
to
be
zero
and
is
not
specified.
In
the
machine-language
monitor,
a
zero
page
mode
instruction
appears
in
this
form:
mnemonic
$hli
where
mnemonic
is
an
instruction
mnemonic
and
h
represents
a
hexadecimal
digit.
The
following
instructions
are
available
in
zero
page
mode:
ADC,
AND,
ASL,
BIT,
CMP,
CPX,
CPY,
DEC,
EOR,
INC,
LDA,
LDX,
LDY,
LSR,
ORA,
ROL,
ROR,
SBC,
STA, STX,
and
STY.
Relative
Mode
Only
branch
instructions
are
available
in
relative
mode.
They
consist
of
2
bytes.
The
first
is
the
opcode
for
the
desired
instruction.
The
second
is