English
Language : 

M166 Datasheet, PDF (53/127 Pages) Siemens Semiconductor Group – C16x Family of Siemens 16-Bit CMOS Single-Chip Microcontrollers
30Mar98@15:00h
C166 Family Instruction Set
Instruction Description
CALLS
Call Inter-Segment Subroutine
CALLS
Syntax
Operation
Description
Condition Codes
Condition Flags
CALLS op1, op2
(SP) ← (SP) - 2
((SP)) ← (CSP)
(SP) ← (SP) - 2
((SP)) ← (IP)
(CSP) ← op1
(IP) ← op1
A branch is taken to the absolute location specified by op2 within the seg-
ment specified by op1. The value of the instruction pointer (IP) is placed
onto the system stack. Because the IP always points to the instruction fol-
lowing the branch instruction, the value stored on the system stack repre-
sents the return address to the calling routine. The previous value of the
CSP is also placed on the system stack to insure correct return to the call-
ing segment.
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
CALLS seg, caddr
Format
DA SS MM MM
Bytes
4
Semiconductor Group
53
Version 1.2, 12.97