
<
2
.75
7UGT U/CPWCN
=L/2*
#FFTGUU5RCEG
7/<:
CALL
Call Procedure
Instruction Format:
CALL dst
Operation:
SP
←
SP - 2
@SP
←
PC
PC
←
dst
The Stack pointer (SP) is decremented by 2. The current contents of the program counter (PC) (the address
of the first instruction following the
CALL
instruction) are pushed onto the top of the Stack. The specified
destination address is then loaded into the PC, which points to the first instruction of the procedure.
At the end of the procedure a return (
RET
) instruction can be used to return to the original program flow.
RET
pops the top of the Stack and replaces the original value into the PC.
Flags:
When the instruction is executed, the flags are set as follows:
C:
The value set by the preceding instruction.
Z:
The value set by the preceding instruction.
S:
The value set by the preceding instruction.
V:
The value set by the preceding instruction.
D:
The value set by the preceding instruction.
H:
The value set by the preceding instruction.
OPC
dst
OPC
dst
OPC (Hex)
Address Mode
dst
D6
DA
D4
IRR