Intel MCS-80/85 Computer Hardware User Manual


 
THE INSTRUCTION SET
POP
PSW
(Pop
processor status word)
(CY)
-
«SP))o
(P)-
«SP))2
(AC)-
«SP))4
(Z)
-
«S
P))6
(S)
-
«SP))7
(A)
-
«SP)
+
1)
(SP)
-
(SP)
+ 2
The content
of
the memory location whose
address is specified by the content
of
register
SP
is used
to
restore the condition
flags. The content
of
the memory location
whose address is one more than the con-
tent
of
register
SP
is moved
to
register
A.
The content
of
register
SP
is incremented
by
2.
1
Cycles:
States:
Addressing:
Flags:
o
3
10
o o
reg. indirect
Z,S,P,CY,AC
XTHL (Exchange
stack
top with H
and
L)
(L) -
«SP))
(H) -
«SP)
+
1)
The content
of
the L register is exchanged
with the content
of
the memory location
whose address is specified by the content
of
register
SP.
The content
of
the H register
is exchanged with the content
of
the
memory
location whose address is one
more than the content
of
register
SP.
1 1
o
o
o
1
Cycles: 5
States: 16 (8085), 18 (8080)
Addressing: reg. indirect
Flags: none
1
* All mnemonics copyrighted © Intel Corporation 1976.
5-16
SPH
L (Move H L
to
SP)
1
(SP)
- (H) (L)
The contents
of
registers
Hand
L (16 bits)
are moved
to
register
SP.
o
o
Cycles: 1
States: 6 (8085), 5 (8080)
Addressing: register
Flags: none
1
IN
port
(Input)
(A)-(data)
The data placed on the eight bit bi-
directional data bus
by
the specified port is
moved
to
register
A.
1
o 1 o 1
port
Cycles: 3
States: 10
Addressing: direct
Flags: none
OUT port (Output)
(data) -
(A)
The content
of
register A is placed on the
eight
bit
bi-directional
data
bus
for
transmission
to
the specified port.
1
0
1
0 0
port
Cycles:
3
States:
10
Addressing:
direct
Flags:
none