Intel MCS-80/85 Computer Hardware User Manual


 
THE INSTRUCTION SET
5.6
INSTRUCTION
SET
ENCYCLOPEDIA
In the ensuing dozen pages, the complete
8085A
instruction set is described, grouped in
order under five different
functional headings,
as
follows:
1.
Data Transfer Group - Moves data be-
tween registers
or
between memory
locations and registers. Includes moves,
loads, stores, and exchanges.
(See
below.)
2.
Arithmetic Group - Adds, subtracts, in-
crements,
or
decrements
data
in
registers
or
memory.
(See
page
5-13.)
3.
Logic Group - ANDs, DRs, XDRs, com-
pares, rotates,
or
complements data in
registers
or
between memory and a
register.
(See
page
5-16.)
4.
Branch Group - Initiates conditional
or
unconditional jumps, calls, returns, and
restarts.
(See
page
5-20.)
5. Stack,
110,
and Machine Control Group
-
Includes instructions for maintaining
the
stack, reading from input ports,
writing
to
output
ports, setting and
reading interrupt masks, and setting and
clearing flags.
(See
page
5-22.)
The formats described in the encyclopedia
reflect
the assembly language processed by
Intel-supplied assembler, used
with
the Intellec@
development
systems.
5.6.1
Data
Transfer Group
This group of instructions transfers data
to
and
from registers and memory. Condition
flags are
not
affected by any instruction in
this
group.
MOV r1, r2 (Move Register)
(r1)
-
(r2)
The content
of
register
r2
is moved
to
register
r1.
O.
o 0
Cycles:
States:
Addressing:
Flags:
o
S
S
1
4
(8085),
5
(8080)
register
none
S
*AII mnemonics
copyrighted©lntel
Corporation
1976.
5-4
MOV
r,
M (Move from memory)
(r) -
((H)
(L»
The content
of
the memory location, whose
address is in registers
Hand
L,
is moved
to
register
r.
o
1
o o
Cycles:
States:
Addressing:
Flags:
o
2
7
1
1
reg. indirect
none
MOV M, r (Move
to
memory)
((H» (L» -
(r)
o
The content
of
register r is moved
to
the
memory
location whose address is in
reg isters
Hand
L.
0 1
1
0 S S
S
Cycles:
2
States:
7
Addressing:
reg. indirect
Flags: none
MVI r, data (Move Immediate)
(r)
- (byte
2)
The content
of
byte 2
of
the
instruction is
moved
to
register
r.
o
o
o o o
1
data
Cycles:
States:
Addressing:
Flags:
2
7
immediate
none
1
o
MVI M, data (Move
to
memory immediate)
((H)
(L»
- (byte
2)
The content
of
byte 2
of
the
instruction is
moved
to
the memory
location
whose ad-
dress is in registers
Hand
L.
o o 1 1
data
Cycles:
States:
Addressing:
Flags:
o
3
10
1
1
o I
immed./reg. indirect
none
11
11
II
I
! I
I'
I
I
I
I