
CALL
ce,
IF
cc
TRUE:
(SP-I)
+
--
PCH
(SP-2)
+
--
PCL- PC
+
--
no
I
<
1
~:cc~<
a:
0
I
I .• :
:< : :
>1
I" : In: : : >1
Note:
The
first
of
the
two
n
operands
in
the
assembled
object
code
above
is
the
least
significant
byte
of
the
two-byte
memory
address.
If
condition
cc
is
true,
this
instruction
pushes
the
current
contents
of
the
Program
Counter
(PC)
onto
the
top
of
the
external
memory
stack,
then
loads
the
operands
nn
into
PC
to
point
to
the
address
in
memory
where
the
first
opcode
of
a
subroutine
is
to
be
fetched.
(At
the
end
of
the
subroutine,
a
RETurn
instruction
can
be
used
to
return
to
the
original
program
flow
by
popping
the
top
of
the
stack
back
into
PC.)
If
condition
cc
is
false,
the
Program
Counter
is
incremented
as
usual,
and
the
program
continues
with
the
next
sequential
instruction.
The
stack
push
is
accomplished
by
first
decrementing
the
current
contents
of
the
Stack
Pointer
(SP),
loading
the
high-order
byte
of
the
PC
contents
into
the
memory
address
now
pointed
to
by
SP;
then
decrementing
SP
again,
and
loading
the
low-order
byte
of
the
PC
contents
into
the
top
of
the
stack.
Note:
Because
this
is
a
3-byte
instruction,
the
Program
Counter
will
have
been
incremented
by
3 before
Summary of Contents for ATES Z80
Page 1: ......
Page 5: ......
Page 6: ...Juanlurn c cc r 11 SoJt 391262 Jr ml tOl...
Page 32: ......
Page 38: ...If Address 2130ll contains 65ll and address 2131H contains 78ll after the instruction...
Page 56: ......
Page 79: ......
Page 80: ......
Page 86: ...10050 is 220 after the execution of ADD A IX SH the contents of the Accumulator will be 33H...
Page 88: ......
Page 104: ...If the contents of register Dare 280 after the execution of...
Page 112: ......
Page 117: ...Example If the contents of the Accumulator are...
Page 119: ...SCF S z H P V N C Not affected Not affected Rese t Not affected Re se t Set...
Page 127: ......
Page 128: ......
Page 145: ......
Page 146: ......
Page 148: ...Example If the contents of the Accumulator are...
Page 152: ...the contents of the Accumulator and the Carry Flag will be...
Page 185: ......
Page 186: ......
Page 203: ......
Page 204: ......
Page 222: ......
Page 237: ......
Page 238: ......
Page 261: ......
Page 262: ......
Page 267: ......