Infineon Technologies C166S V2 User Manual page 235

16-bit microcontroller
Table of Contents

Advertisement

CALLS
Group
Syntax
Source Operand(s)
Destination Operand(s)
Operation
(SP) ← (SP) - 2
((SP)) ← (CSP)
(SP) ← (SP) - 2
((SP)) ← (IP)
IF (CPUCON1.SGTDIS = 0) THEN
END IF
(IP) ← op2
Description
A branch is taken to the absolute location specified by op2 within the segment specified
by op1. The previous value of the CSP is placed into the system stack to ensure correct
return to the calling segment. The value of the instruction pointer (IP) is also placed into
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 to the
calling routine.
CPU Flags
E
Not affected.
Z
Not affected.
V
Not affected.
C
Not affected.
N
Not affected.
Encoding
Mnemonic
CALLS
seg , caddr
User Manual
Call Inter-Segment Subroutine
Call Instructions
CALLS op1, op2
op1 → segment number
op2 → 16-bit address offset
none
(CSP) ← op1
E
Z
-
-
Detailed Instruction Description
V
C
-
-
Format
DA SS MM MM
8-235
User Manual
C166S V2
CALLS
N
-
Bytes
4
V 1.7, 2001-01

Advertisement

Table of Contents
loading

Table of Contents