SAB80C517-M16 SIEMENS [Siemens Semiconductor Group], SAB80C517-M16 Datasheet - Page 212

no-image

SAB80C517-M16

Manufacturer Part Number
SAB80C517-M16
Description
8-Bit CMOS Single-Chip Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
Encoding:
Bytes:
Cycles:
LCALL
Function:
Description:
Example:
Operation:
Semiconductor Group
addr16
Long call
LCALL calls a subroutine located at the indicated address. The instruction adds
three to the program counter to generate the address of the next instruction and
then pushes the 16-bit result onto the stack (low byte first), incrementing the stack
pointer by two. The high-order and low-order bytes of the PC are then loaded,
respectively, with the second and third bytes of the LCALL instruction. Program
execution continues with the instruction at this address. The subroutine may
therefore begin anywhere in the full 64 Kbyte program memory address space. No
flags are affected.
Initially the stack pointer equals 07 H . The label ”SUBRTN” is assigned to program
memory location 1234 H . After executing the instruction
LCALL
at location 0123 H , the stack pointer will contain 09 H , internal RAM locations 08 H
and 09 H will contain 26 H and 01 H , and the PC will contain 1234 H .
LCALL
(PC)
(SP)
((SP))
(SP)
((SP))
(PC)
3
2
0 0 0 1
(SP) + 1
(SP) + 1
(PC) + 3
addr15-0
(PC7-0)
(PC15-8)
SUBRTN
0 0 1 0
addr15 . . addr8
213
addr7 . . addr0
Instruction Set

Related parts for SAB80C517-M16