English
Language : 

M166 Datasheet, PDF (52/127 Pages) Siemens Semiconductor Group – C16x Family of Siemens 16-Bit CMOS Single-Chip Microcontrollers
30Mar98@15:00h
C166 Family Instruction Set
Instruction Description
CALLR
Call Subroutine Relative
CALLR
Syntax
Operation
Description
Condition Codes
Condition Flags
CALLR op1
(SP) ← (SP) - 2
((SP)) ← (IP)
(IP) ← (IP) + sign_extend (op1)
A branch is taken to the location specified by the instruction pointer, IP,
plus the relative displacement, op1. The displacement is a two’s comple-
ment number which is sign extended and counts the relative distance in
words. 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 on 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.
See condition code table.
E
Z
V
C
N
-
-
-
-
-
Addressing Modes
E Not affected.
Z Not affected.
V Not affected.
C Not affected.
N Not affected.
Mnemonic
CALLR rel
Format
BB rr
Bytes
2
Semiconductor Group
52
Version 1.2, 12.97