Intel MCS-80/85 Computer Hardware User Manual


 
THE
INSTRUCTION SET
Ccondition
addr (Condition call)
If
(CCC),
«SP) - 1) - (PCH)
«SP) - 2) -
(PCl)
(SP)
-
(SP)
- 2
(PC) - (byte
3)
(byte
2)
If
the
specified
condition
is
true, the ac-
tions
specified in
the
CAll
instruction
(see
above) are performed; otherwise, control
continues
sequentially.
I
1 1
1 C I C I C
11
1
I.
0 0
low-order
addr
high-order addr
Cycles:
2/5
(8085),315
(8080)
States: 9/18 (8085), 11/17
(8080)
immediatel
Addressing: reg.
indirect
Flags: none
RET
(Return)
(PCl)
- «SP»;
(PCH) - «SP) +
1);
(SP)
-
(SP)
+
2;
The content
of
the memory
location
whose
address is specified in register SP is moved
to
the
low-order eight
bits
of
register
PC.
The content
of
the memory
location
whose
address is one more than the
content
of
register
SP
is moved
to
the
high-order eight
bits
of
register
PC.
The
content
of
register
SP
is
incremented by
2.
1 o o
Cycles:
States:
Addressing:
Flags:
1
3
10
o
o
reg.
indirect
none
1
*AII mnemonics copyrighted ©
Inte1
Corporation 1976.
5-14
Rcondition (Conditional return)
If
(CCC),
1
(PCl)
-
«SP»
(PCH) - «SP) + 1)
(SP)
-
(SP)
+ 2
If
the
specified
condition
is
true,
the
ac-
tions
specified
in the
RET
instruction
(see
above) are performed; otherwise,
control
continues
sequentially.
1
C C C o o
o
Cycles:
1/3
States: 6/12 (8085),5/11
(8080)
Addressing: reg.
indirect
Flags: none
RST
n (Restart)
1
«SP) - 1) - (PCH)
«SP) - 2) -
(PCl)
(SP)
-
(SP)
- 2
(PC)
- 8 * (NNN)
The high-order eight
bits
of
the
next
in-
struction
address
are moved
to
the
memory
location
whose address
is
one
less than
the
content
of
register SP. The
low-order eight
bits
of
the
next
instruction
address are moved
to
the memory
location
whose address
is
two
less
than
the
content
of
register
SP.
The
content
of
register SP is
decremented by
two.
Control is transferred
to
the
instruction
whose address
is
eight
times
the
content
of
NNN.
1 N N N 1 1 1
Cycles: 3
States: 12 (8085),
11
(8080)
Addressing: reg.
indirect
Flags: none
151413121110
9 8 7 6 5 4 3 2 1 0
JoJololoJoJoJoJOJOJOJNJNJNJOJOJOJ
Program Counter
After
Restart