
<
2
.75
7UGT U/CPWCN
#FFTGUU5RCEG
=L/2*
7/<:
CALL
Call Procedure
Example: The contents of the
PC
are
1A47H
and the contents of the
SP
(registers
FEH
and
FFH
) are
3002H
.
The following statements cause the
SP
to be decremented to
3000H
,
1A4AH.
The address following the
CALL
instructionis stored in external data memory at addresses
3000
and
3001H
. The
PC
is loaded with
3521H
and now points to the address of the first statement in the procedure to be executed.
CALL 3521H
Op Code: D6 35 21
Example: The contents of the
PC
are
1A47H
. The contents of the
SP
(register
FFH
) are
72H
. The contents
of register
A4H
are
34H
. The contents of register pair
34H
are
3521H
. The following statements cause the
SP
to be decremented to
70H
,
1A4AH.
The address following the
CALL
instructionis stored in
R70H
and
71H
. The
PC
is loaded with
3521H
and now points to the address of the first statement in the procedure to
be executed
CALL @A4H
Op Code: D4 A4