Infineon Technologies C166S V2 User Manual page 233

16-bit microcontroller
Table of Contents

Advertisement

CALLI
Group
Syntax
Source Operand(s)
Destination Operand(s)
Operation
IF (op1) THEN
ELSE
END IF
Description
If the condition specified by op1 is met, a branch to the location specified indirectly by
the second operand op2 is taken. The value of the instruction pointer IP is placed onto
the system stack. Because the IP always points to the instruction following the branch
instruction, the value stored in the system stack represents the return address of the
calling routine. If the condition is not met, no action is taken and the next instruction is
executed normally.
CPU Flags
E
Not affected.
Z
Not affected.
V
Not affected.
C
Not affected.
N
Not affected.
Encoding
Mnemonic
CALLI
cc , [Rw
User Manual
Call Subroutine Indirect
Call Instructions
CALLI op1, op2
op1 → condition code
op2 → 16-bit address offset
none
(SP) ← (SP) - 2
((SP)) ← (IP)
(IP) ← op2
next instruction
E
Z
-
-
]
n
Detailed Instruction Description
V
C
-
-
Format
AB cn
8-233
User Manual
C166S V2
CALLI
N
-
Bytes
2
V 1.7, 2001-01

Advertisement

Table of Contents
loading

Table of Contents