English
Language : 

C166SV2 Datasheet, PDF (234/438 Pages) Infineon Technologies AG – 16-Bit Microcontroller
User Manual
C166S V2
Detailed Instruction Description
CALLR
Group
Call Subroutine Relative
Call Instructions
Syntax
CALLR op1
Source Operand(s)
op1 → 8-bit signed displacement
CALLR
Destination Operand(s) none
Operation
(SP) ← (SP) - 2
((SP)) ← (IP)
(IP) ← (IP) + 2*sign_extend(op1)
Description
A branch is taken to the location specified by the instruction pointer IP plus the relative
displacement op1. The displacement is a two’s complement number which is sign
extended and counts the relative distance in words. The value of the instruction pointer
(IP) is placed into 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. The value of the IP used in the target address
calculation is the address of the instruction following the CALLR instruction.
CPU Flags
E
Z
V
C
N
-
-
-
-
-
E Not affected.
Z Not affected.
V Not affected.
C Not affected.
N Not affected.
Encoding
Mnemonic
CALLR
rel
Format
BB rr
Bytes
2
User Manual
8-234
V 1.7, 2001-01