gc80c510 CORERIVER Semiconductor, gc80c510 Datasheet - Page 152

no-image

gc80c510

Manufacturer Part Number
gc80c510
Description
Eprom/rom 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
LCALL
Description:
Operation:
Encoding:
Function:
Example:
Cycles:
addr16
Bytes:
Long call
LCALL calls a subroutine Iocated 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 64Kbyte program memory
address space. No flags are affected.
Initially the Stack Pointer equals 07h. The label “SUBRTN” is assigned to
program memory location 1234h. After executing the instruction,
LCALL SUBRTN
at location 0123h, the Stack Pointer will contain 09h, internal RAM Iocations
08h and 09h will contain 26h and 01h, and the PC will contain 1234h.
3
4
LCALL
(PC)
(SP)
((SP))
(SP)
((SP))
(PC)
(PC)
0
0
(SP) + 1
(SP) + 1
(PC) + 3
(PC) + 3
addr
(PC
(PC
0
15-0
7-0
15-8
1
)
)
0 0 1 0
Page 152 of 211
addr15 ~ addr8
Appendix A: Instruction Set
addr7 ~ addr0

Related parts for gc80c510